CSS Problem?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
glenn
Forum Newbie
Posts: 18
Joined: Fri Apr 19, 2002 7:42 am
Location: London, England (UK)

CSS Problem?

Post 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
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
Post Reply