Cassius
10-16-2006, 08:48 AM
I have a div tag with a single line of text (an unordered list, having the setting display:inline to serve as a menu). Now when i tried adding a top and bottom border to this div tag, the div is automatically increasing in size, having some empty space above and below the line of text. All i added is the following:
border-top: solid 2px #FF6600;
border-bottom: solid 2px #FF6600;
In fact when i comment these two lines, the div height returns to normal. This is happening in IE6.
I tried setting padding and margin to 0 but to no avail.
Any suggestions are greatly appreciated.
Thanks in advance
border-top: solid 2px #FF6600;
border-bottom: solid 2px #FF6600;
In fact when i comment these two lines, the div height returns to normal. This is happening in IE6.
I tried setting padding and margin to 0 but to no avail.
Any suggestions are greatly appreciated.
Thanks in advance