[RESOLVED] Firefox doesn't read any CSS at all... Weird problem
Hi,
I am making div's and CSS and the layout works perfectly in Safari and Chrome, but doesn't work at all with Firefox.
There are no background colors displayed in Firefox and the dummy text gets out of the div...
I've included two screenshots and my CSS code below.
Thanks a lot for helping me on that.
Alex
I would recommend that you check the page you're writing is well formed and validated, and that the CSS rules you are specifying are placed within the <head> tag of it.
It's tough to diagnose the issue without seeing the HTML as well. My advice would be to install the Web Developer Toolbar in Firefox and see what it says when you view the page.
Hi,
Thanks for your response.
I will include my html file. It's pretty short and simple so I really don't see what's wrong.. Even if I remove the "include leftmenu.php", it does the same. (Also, I tried on Firefox on another computer and it does exactly the same)
Regards,
Code:
<html>
<head>
<link rel='stylesheet' type='type/css' href='styleNavigation.css'>
</head>
<body>
<div id="wrap">
<div id="header">
<center>this is the header</center>
</div>
<div id="nav">
<p>
<center>Navigation Navigation Navigation <center>
</div>
<div id="main">
<p>
<center><font style="font-size: 12; ">
dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text
</font></center>
</div>
<div id="sidebar">
<?php include ('include/leftmenu.php');?>
</div>
<div id="footer">
<center>this is the footer</center>
</div>
</div>
</body>
</html>
It's surprising to see that Firefox is so sensitive to syntax, more than Safari or Chrome...
You said "Some styles were also reported faulty": do you have program to detect style errors, or is it just the program you use to write all your codes? (I use Smultron for Mac)
For the DOCTYPE, I only very conventional functions and don't get very complex in my programming
I'm looking at what is not allowed on Stric Doctype and I see stuff such as "background","height" (but i use it for css) and I use those.
Do you advise HTML 4 strict or transitional? XHTML?
Bookmarks