Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2005, 04:53 AM   PM User | #1
dirvish
New to the CF scene

 
Join Date: Feb 2005
Location: California
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
dirvish is an unknown quantity at this point
Firefox div css trouble

I've been staring at this problem for a while now and have come up with nothing. It has to be something simple...

This page: http://foundnews.com/index-new.php looks good in IE but goes all wacky in Firefox. What did I do wrong? It seems to be selectively applying things from my stylesheet (http://foundnews.com/fnn-style.css).

Any suggestions would be great!
dirvish is offline   Reply With Quote
Old 02-25-2005, 05:21 AM   PM User | #2
ampulator00
New Coder

 
Join Date: Jun 2004
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
ampulator00 is an unknown quantity at this point
I suggest you take a look at this:

http://validator.w3.org/check?uri=ht...1+Transitional

and this:

http://jigsaw.w3.org/css-validator/v...usermedium=all

Start theere; when I get more time, I'm going to going to test out what's wrong.

Last edited by ampulator00; 02-25-2005 at 05:28 AM..
ampulator00 is offline   Reply With Quote
Old 02-25-2005, 05:33 AM   PM User | #3
dirvish
New to the CF scene

 
Join Date: Feb 2005
Location: California
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
dirvish is an unknown quantity at this point
still wacky

Thanks, that helped me find some typos, but fixing those didn't change how it looks in Firefox.
dirvish is offline   Reply With Quote
Old 02-25-2005, 05:49 AM   PM User | #4
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
The big issue is that you don't have anything clearing the floated divs. So the footer is being pushed off to the side and that's the bg color you see under the floated divs.

After your last content div try adding "<div style="clear: both"><!-- clearing div --></div>". Hopefully that clears some of it up.

BTW, you're still missing a DOCTYPE, and if you're testing your pages in IE this means IE is viewing them in Quirks mode. I'd make sure things are validating, code for standards compliance, then debug for IE rather than the other way around.
__________________
drums | web
rmedek is offline   Reply With Quote
Old 02-25-2005, 05:54 AM   PM User | #5
dirvish
New to the CF scene

 
Join Date: Feb 2005
Location: California
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
dirvish is an unknown quantity at this point
cleared divs

Quote:
Originally Posted by rmedek
After your last content div try adding "<div style="clear: both"><!-- clearing div --></div>". Hopefully that clears some of it up.
Ahhh, yes. Much better! It is making the footer wider than everything else now, but I'll mess with that and see what I can do. Thanks!
dirvish is offline   Reply With Quote
Old 02-25-2005, 08:57 AM   PM User | #6
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Validation errors

I'd strongly suggest validating the lot and fixing it, too; I did a quick validation and it showed up 63 errors. Some of those were typos, some were standards violations but shouldn't dramatically effect rendering (should be fixed, though), but I also saw a missing form end tag, which is much more serious an could throw off a stricter browser like FireFox.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:40 PM.


Advertisement
Log in to turn off these ads.