View Full Version : Unexpected whitespace appearing

01-11-2008, 04:35 PM
Please see my test page here: http://shawnessy.ca/test.html

The top of my CSS box is "floating" above the rest of the box. It seems to only happen when I include a table in the content section (i.e. "spiffyfg").

Can someone explain to me why I'm getting that whitespace, and how to fix it?!


01-11-2008, 04:37 PM
put this in ur code

* {

then adjust the top margin!!

01-11-2008, 04:46 PM
Hello Quimbly, to show you why, try this once:

.my_header1 {
color: #FFFFFF;
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
font-size: 20px;
text-align: center;
margin: 0;
It's the default margin on p that is causing your gap.

You should really have a doctype, even when testing.

01-11-2008, 04:48 PM
Thanks, guys!

What's a doctype?

01-11-2008, 04:54 PM
Thanks, guys!

What's a doctype?

Check out the link in my sig below...
OR the sticky at the top of this very forum (http://www.codingforums.com/showthread.php?t=18346)