glenelkins Posted June 12, 2008 Share Posted June 12, 2008 Hi consider this code: .nav_items { margin: 0px; padding: 0px; list-style:none; } .nav_items li { margin: 0px; padding: 0px;display:inline; } .nav_items li a:link { margin: 0px; padding: 0px;height:22px;background:url('../images/nav_hover.gif');} .nav_items li a:visited { margin: 0px; padding: 0px;height:22px;background:url('../images/nav_hover.gif');} .nav_items li a:hover { margin: 0px; padding: 0px;height:22px;background:url('../images/nav_hover.gif');} This works fine in IE the list items appear at 22px in height. But in FF they only appear the height of the font size. Any ideas how to get the height ofthe list items to work in FF? Link to comment https://forums.phpfreaks.com/topic/109850-list-height-issue/ Share on other sites More sharing options...
haku Posted June 12, 2008 Share Posted June 12, 2008 set a line-height in the CSS for the li tags. Link to comment https://forums.phpfreaks.com/topic/109850-list-height-issue/#findComment-563833 Share on other sites More sharing options...
s_ff_da_b_ff Posted June 12, 2008 Share Posted June 12, 2008 haku link me to your website Link to comment https://forums.phpfreaks.com/topic/109850-list-height-issue/#findComment-563839 Share on other sites More sharing options...
glenelkins Posted June 12, 2008 Author Share Posted June 12, 2008 doesnt work. I added line-height firstly to the .nav_items li class and then to all of them, none of it worked Link to comment https://forums.phpfreaks.com/topic/109850-list-height-issue/#findComment-563878 Share on other sites More sharing options...
djcubez Posted June 12, 2008 Share Posted June 12, 2008 try adding display: block; to your a:link Link to comment https://forums.phpfreaks.com/topic/109850-list-height-issue/#findComment-563910 Share on other sites More sharing options...
glenelkins Posted June 13, 2008 Author Share Posted June 13, 2008 ahha thanks that fixed it Link to comment https://forums.phpfreaks.com/topic/109850-list-height-issue/#findComment-564650 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.