![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2013
Device: none
|
Cannot get rid of text-indent
I'm working from a html + css file and converting to epub. I have a toc and the first item is indented. No matter how I try I can't get rid of the indent.
In the finished stylesheet.css it's in .tableofcontents and = 1.5em I've tried: .tableofcontents { text-indent: 0pt; } in my css file. No change. <div class="tableofcontents" style="text-indent: 0pt;"> in the html. This is ignored too. Any ideas? This is how htlatex formats the html code: Code:
<h1 class="chapter"><a id="x1-1000"></a>Contents</h1> <div class="tableofcontents"> <span class="chapterToc" > <a href="#Q1-1-3">Introduction</a></span> I removed that option and it's fine now. I thought that option was only for spaces between paragraphs? Last edited by dawood; 10-21-2013 at 08:43 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When you use remove paragraph spacing an indent is automatically added, as otherwise you cannot distinguish paragraphs. There is an additional option to control that amount of indent.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2013
Device: none
|
I see. Thanks. What if a book is non-fiction with unindented paragraphs. Is there a way to detect that, or should I just use a p { text-indent: 0pt; } rule?
|
![]() |
![]() |
![]() |
#4 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
If you want to remove spacing between paragraphs and not have the indents change at all then follow the guidelines in the pop-up when you hover over Indent size, specifically the last sentence.
Last edited by DoctorOhh; 10-21-2013 at 10:12 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do you turn off default text-indent <p> in Nook | DAntkowiak | Barnes & Noble NOOK | 9 | 07-11-2013 10:43 AM |
Border and text indent problem ePub to mobi | AlexBell | Conversion | 12 | 04-08-2012 08:37 AM |
Get rid off "left-justified" text | SMR | Kindle Developer's Corner | 3 | 03-01-2012 01:14 AM |
Text boxes and how to get rid of them (komposer)? | Student1 | Calibre | 0 | 04-04-2009 07:22 PM |