shamsuljewel Posted November 11, 2007 Share Posted November 11, 2007 I am using a list. In firefox the distence between list item is very close on the other hand in IE the difference is far. Is there anything that fixed the distance of the list items. Quote Link to comment https://forums.phpfreaks.com/topic/76839-css-list-problem-please-help/ Share on other sites More sharing options...
kopytko Posted November 11, 2007 Share Posted November 11, 2007 Set margin and padding to 0px for your ul tag. Then set those values with your requested size. <style> ul { margin: 0px; padding: 0px; } ul#some_list { margin: 5px; padding: 3px; } ul#some_list li { padding: 0px 2px; } </style> <ul id="some_list"> <li>option 1</li> <li>option 2</li> <li>option 3</li> </ul> Quote Link to comment https://forums.phpfreaks.com/topic/76839-css-list-problem-please-help/#findComment-389070 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.