02-12-2013, 11:18 AM | #1 |
Enthusiast
Posts: 48
Karma: 10
Join Date: Aug 2011
Device: Ipad
|
Lists (ul, ol, li) removing indent completely?
Hello community!
This thread is about removing indents completely from list items. The following CSS code manages to reduce the indenting, but how do you remove it completely? Anybody know? Code:
ul, ol, li { margin: 0%; padding: 0%; } |
02-12-2013, 11:55 AM | #2 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
ul, ol, li { margin: 0; text-indent: 0 } |
|
Advert | |
|
02-12-2013, 01:56 PM | #3 |
Enthusiast
Posts: 48
Karma: 10
Join Date: Aug 2011
Device: Ipad
|
Whoops, pasted wrong version of the code. Yeah, it was supposed to be without % and it does not help. There is a default indent for lists that needs to be overriden somehow.
Last resort is to make fake lists with paragraphs and bullet symbols etc and left-margin/negative text-indent. |
02-12-2013, 10:25 PM | #4 |
Zealot
Posts: 138
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 5, Samsung Galaxy S20 FE
|
Don't include the li:
Code:
ul,ol { margin-left: 1em; padding: 0; } |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Indent other than em | curiousgeorge | ePub | 11 | 10-22-2012 02:56 PM |
hanging indent | Oldpilot | Sigil | 2 | 11-13-2010 06:20 AM |
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) | David Derrico | Calibre | 5 | 08-04-2010 12:13 AM |
removing spacing between paragraphs WITHOUT touching indent? | ferossan | Calibre | 2 | 12-24-2009 02:12 PM |
Paragraphs and indent | mrmikel | Calibre | 33 | 01-10-2009 05:37 PM |