View Single Post
Old 10-21-2013, 08:32 AM   #1
dawood
Enthusiast
dawood began at the beginning.
 
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>
Edit* I found out that somehow the indent is set with --remove-paragraph-spacing
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.
dawood is offline   Reply With Quote