This is a discussion on "unwanted space between li elements in IE" within the Web Page Design section. This forum, and the thread "unwanted space between li elements in IE are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
unwanted space between li elements in IE
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
unwanted space between li elements in IE
hi,
i am having a bit of difficulty with a basic CSS problem which totally ruins my layout :/ I am using an unordered list as a menu and i am using this CSS rules for it:
i tried using padding:0px and margin: 0px but it didnt help. how can i get rid of the unwanted space in IE ( so that it looks like the firefox screenshot) ? thanks. Last edited by Rob; Nov 2nd, 2005 at 22:43. |
|
|
|
#2
|
|||
|
|||
|
Re: unwanted space between li elements in IE
|
|
#3
|
|||
|
|||
|
Re: unwanted space between li elements in IE
li{display:inline}
the web "gurus" kall this a "hack". its 1 wae tu get rid av xtra carriag-reterns IE add sumtimes. |
|
#4
|
|||
|
|||
|
Re: unwanted space between li elements in IE
Setting display: inline; solves the symptom but not the accuall problem, you also enter another problem since you change the behaviour of the list by making every element inline instead of blocks. Problem is that IE is "padding" each element with a certain height from the font-size.
An example of this is trying to create a <div> which is 1px in height, you will have huge problems acomplishing this in IE, though Firefox displays it 1px without any problems. Since you have set your font-size to 10px, you can also set the line-height to 10px and the problem is solved. Mvh, Kim Steinhaug - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - www.steinhaug.no - www.easywebshop.no - www.easycms.no |
![]() |
| Tags |
| unwanted, space, between, elements |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unwanted space between 2 images | Craigj1303 | Web Page Design | 1 | Apr 6th, 2008 12:04 |
| unwanted horizontal scroll | mykl | Web Page Design | 11 | Sep 30th, 2007 02:05 |
| unwanted space under image in IE | Craigj1303 | Web Page Design | 2 | Sep 5th, 2007 20:47 |
| PHP XML Counting Elements | Don Logan | PHP Forum | 1 | Mar 18th, 2006 03:03 |
| Unwanted gap under navbar in IE6 for windows | Treo | Web Page Design | 13 | Mar 8th, 2006 12:34 |