Page 1 of 1

CSS Problem?

Posted: Tue Nov 26, 2002 10:40 am
by glenn
I am trying to use the CSS alternative to cellpadding and cellspacing (Padding and border-spacing) but I am have problems! When usign the CSS there is a airline gap between my table and the top and side of the broswer, if I use the HTML commands the gap goes away! Also when I veiw the page in Netscape uses the commands ok, its IE that has the probelms?

The code I use is below, all I do is call the table has a class in the HTML file, I dont know wether that is ok or wether it should be done in a differnt way?

table.menu {
margin-top: auto;
border: 0px;
border-spacing: 0%;
padding: 0%;
width: 200px;
height: 100%;
vertical-align: middle;
text-align: center;
}

Hope you can help me out!

Glenn Curtis

Posted: Tue Nov 26, 2002 5:33 pm
by mydimension
try
border-collapse: collapse;
to get rid of the gap there. its a little known trick. supprised more people don't know about it.