Log in

View Full Version : Getting rid of some space in IE6/7



Old John
10-23-2007, 01:06 AM
Can anyone put me straight for some text to fix a problem? I hear you can enter it into the page to fix Internet Explorer problems

I made a menu you can see http://ancpweb.com/products.php

In FireFox it views fine. In IE 6 or 7 there's a space below each entry.

I have had a search around the forums but I'm not really sure what to ask for.

It's in the ul and li bits of the code when I look behind the page in Dreamweaver.

Cheers

John

ReMaX
10-24-2007, 08:20 PM
I just checked it out and I think you haven't changed the standarts of margin and padding which are a bit different in various browsers.
Try to specific the space via css:
your objects (e.g. p, table)
{
margin: [top] [right] [bottom] [left];
->margin:0 0 0 0;
padding:0 0 0 0;
}
There are also hacks for IE like this:

<!--[if lte IE 6]>
<style type="text/css">
table, p {
margin:0 0 -3px 0;
padding:2px 0 0 0; }
</style>
<![endif]-->
...or whatever
I hope I could be helpful.

greetings
Max