Scorptique Posted November 28, 2008 Share Posted November 28, 2008 Hello guys, When I create a list in a table (or anywhere actually), the words will naturally get indented. Is there anyway I can format it so that it doesn't get indented? (adjust the margin or something?) Like this: I dont know whether it's possible. I hope someone could help me, please ^^;; Link to comment https://forums.phpfreaks.com/topic/134661-need-help-with-list-formatting/ Share on other sites More sharing options...
Adam Posted December 4, 2008 Share Posted December 4, 2008 CSS: "list-style position" I've found it to be a little unpredictable across browsers though so you could use a negative margin if all else fails. Adam Link to comment https://forums.phpfreaks.com/topic/134661-need-help-with-list-formatting/#findComment-705948 Share on other sites More sharing options...
haku Posted December 5, 2008 Share Posted December 5, 2008 It's good to set a default for list-style-position, because some browsers default it to inside, and others to outside. You can adjust the indenting of the list tags using css left-margin or left-padding - they will both an an indent, but in different ways. Link to comment https://forums.phpfreaks.com/topic/134661-need-help-with-list-formatting/#findComment-706437 Share on other sites More sharing options...
TheFilmGod Posted December 6, 2008 Share Posted December 6, 2008 #list ul { margin: 0; padding: 0; } #list ul li { margin: 0; padding: 0; list-style: ...; } You should always start a list with these and build off it. Link to comment https://forums.phpfreaks.com/topic/134661-need-help-with-list-formatting/#findComment-707302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.