Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2013, 11:18 AM   #1
FunkeXMix
Enthusiast
FunkeXMix began at the beginning.
 
Posts: 39
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%;
}
FunkeXMix is offline   Reply With Quote
Old 02-12-2013, 11:55 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,231
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by FunkeXMix View Post
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%;
}
You could try...

Code:
ul, ol,
li {
    margin: 0;
    text-indent: 0
}
JSWolf is offline   Reply With Quote
Old 02-12-2013, 01:56 PM   #3
FunkeXMix
Enthusiast
FunkeXMix began at the beginning.
 
Posts: 39
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.
FunkeXMix is offline   Reply With Quote
Old 02-12-2013, 10:25 PM   #4
kcarscadden
Connoisseur
kcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavens
 
kcarscadden's Avatar
 
Posts: 74
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: Sony 505, iPod Touch, Kobo Vox
Don't include the li:

Code:
ul,ol {
margin-left: 1em;
padding: 0;
}
kcarscadden is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 03:42 AM.


MobileRead.com is a privately owned, operated and funded community.