wsantos Posted January 23, 2008 Share Posted January 23, 2008 Guess I'll need help on CSS again. ??? I have this basic conceptual layout. #sortable_list { BACKGROUND: #FFFFFF; } #sortable_list LI { DISPLAY: INLINE; } #sortable_list UL LI DIV { WIDTH: 150PX; DISPLAY: INLINE; } <UL ID=sortable_list> <LI ID=Row> <UL CLASS=Header> <LI CLASS=tblHead_left> head 1 </LI> <LI CLASS=tblHead> head 2 </LI> <LI CLASS=tblHead_right> head 3 </LI> </UL> </LI> <LI ID=Row> <UL> <LI> Item 1-A </LI> <LI> Item 2-A </LI> <LI> Item 3-A </LI> </UL> </LI> <LI ID=Row> <UL> <LI> Item 1-B </LI> <LI> Item 2-B </LI> <LI> Item 3-B </LI> </UL> </LI> </UL> Im trying to control the list item's width but end up in vain. Thank you Link to comment https://forums.phpfreaks.com/topic/87430-list-as-a-table/ Share on other sites More sharing options...
phpQuestioner Posted January 23, 2008 Share Posted January 23, 2008 try using padding instead of width. Link to comment https://forums.phpfreaks.com/topic/87430-list-as-a-table/#findComment-447342 Share on other sites More sharing options...
bronzemonkey Posted January 24, 2008 Share Posted January 24, 2008 You cannot control the width of inline elements, display the list items as block level elements. It is also good practice to use lowercase throughout your css and html files (especially the elements) and to put "" around you class names in the html file. Link to comment https://forums.phpfreaks.com/topic/87430-list-as-a-table/#findComment-447360 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.