Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS not loading in Firefox

I have a web page I am testing in both IE and FF. It works perfectly in IE but the style sheets will not load in Firefox.

Has anyone else experienced this type of issue with Firefox ?

Also note that this is only on my dev workstation loading the files locally...

Here is the header section of the html file:

<head>

<link  rel="stylesheet" type="text/css" href="\\server\USERS$\myID\Projects\Intranet\css\common.css">
<link  rel="stylesheet" type="text/css" href="\\server\USERS$\myID\Projects\Intranet\css\css.css">

<title>8927.html</title>
</head>
like image 496
Joseph Avatar asked Sep 15 '26 20:09

Joseph


2 Answers

UNC Paths

If you're linking to a file in a UNC path (e.g., \\servername\share\file.ext), you will need to specify the path thusly:

file://///servername/share/file.ext

Also note that you cannot link to file://///servername to get a listing of shares at that hostname due to a bug.

Source: http://kb.mozillazine.org/Links_to_local_pages_don%27t_work

like image 122
SztupY Avatar answered Sep 18 '26 14:09

SztupY


ok I fixed it by using the following and it now works in both IE and FF:

<link  rel="stylesheet" type="text/css" href="../css/common.css">
<link  rel="stylesheet" type="text/css" href="../css/css.css">
like image 31
Joseph Avatar answered Sep 18 '26 14:09

Joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!