Mysterious space between DIVs
I'm throwing together a layout to test some header, background, and footer images I made. The problem is that the DIVs have unwanted whitespace between them. Any ideas?
HTML Code:
<HTML>
<BODY style="margin:0px; padding:0px; border:0px">
<DIV align="center">
<DIV style="width:720px" align="left">
<DIV style="background-image: url(roundheader.png);height:253px">HEADER
</DIV>
<DIV style="background-image: url(background.png);">
<PRE>
CONTENT
CONTENT
CONTENT
CONTENT
</PRE>
</DIV><DIV style="background-image: url(footer.png);height:34px">
Footer
</DIV>
</DIV>
</DIV>
</BODY>
</HTML>
Edit:
EDIT: Figured it out... the PRE tag has margins of its own that push away the other DIVs. Strange
Last edited by ThePaintGuru; 03-29-2008 at 08:38 PM.
Reason: Automerged Doublepost
----------
If you found my post helpful in some way, I'd really appreciate a few credits as I'm saving up for a domain.
You can click the blue check mark in the upper right corner of this post to increase my reputation.