PDA

View Full Version : N00b Question - Div height


JumboJon
01-30-2008, 06:02 PM
Hello,

I'm somewhat new to using CSS and Div tags in my coding, and I came across a problem when I was writing the code on my new website.

You see, I have everything contained in a <div class="main" id="page"> tag, which adds a border and makes the background white. In Internet Explorer, it looks as it should. However, when my page is viewed in Firefox, the background and border skip over everything in the div tag.

Also, in Internet Explorer, the very top image appears a few pixels above the rest of the page, but that doesn't happen in Firefox.

Here is the site, I uploaded it so you guys can see the source code and hopefully help me out.

http://www.cheezonastick.net/test/

Thanks in advance to anyone that can help me!

-Jon Roost

tomws
01-30-2008, 06:26 PM
I'm no pro, but I'm wondering about these thing...

Regarding the image being split from the rest, you may be experiencing the Internet Explorer box model problem.

You have two closing body tags. That can confuse a browser.

Are there some extra closing div tags in there?

I've never actually seen single quotes used for tag values, but as I said: I'm no pro.

JumboJon
01-30-2008, 06:35 PM
I don't think there's any extra closing div tags, I think I have only the ones I used.

And I fixed the other closing body tag, didn't realize I had that extra one.

_Aerospace_Eng_
01-30-2008, 07:50 PM
You need to clear your floats.
http://www.quirksmode.org/css/clearing.html