Forum Moderators: not2easy

Message Too Old, No Replies

Firefox will not load my styleheet

css; firefox;stylesheets

         

ngc628

5:20 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



I posted this yesterday as well...but still no solution for me.

The style sheet will load using Explorer 6.0 and the newest Explorer but not with Firefox 3.0.7

I added type="text/css" to my link lines after doing some research but it still didn't work.

I used Web Developer with the file and I can load the stylesheet using "Add User Style Sheet"

Here's my header:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title>Home - M. Machel & Associates Ltd.</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" type="text/css" href="machel.css" media="screen">
<link rel="stylesheet" type="text/css" href="menuv.css" media="screen">

<!--[if lt IE 7]>
<style type="text/css" media="screen">
body{behavior:url(csshover.htc);}
</style>
<![endif]-->
<style type="text/css" media="screen">
<!--

-->
</style>

I validated the html and the css stylesheets and everything passed. the pages failed when i loaded them locally and through my host server.

ngc628

5:28 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



Just tried it in Opera and it works there as well.

ngc628

8:04 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



Well...I fixed it...thanks to Notepad++

Using Notepad++ I converted my pages to charset=utf-8 and everything worked.

:))

I just used the regular Windows notepad to create the site and as I said in my first post everything worked when all the css was on the page and not linked.

Isn't designing websites like banging your head on concrete at times.

Cheers

simonuk

8:37 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



Only at times?

:-)