View Single Post
Old 05-28-2015, 08:45 AM   #9
ramusthomas
small press
ramusthomas began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2015
Location: Sweden
Device: iPhone & iPad
Quote:
Originally Posted by Doitsu View Post
Did you use pseudo, descendant or adjacent selectors in the style-sheet?
If not, please post the HTML code of the first paragraph and the preceding element as well as the relevant styles.
Oh, that’s beyond my competence, sorry, but I use Indesign CC to produce Epubs, ie. I got a IDgenerated CSS, not really a clean slate so to speak, but the "p class" is the same between first and second paragraph (they’re based on the printed versions paragraph styles) except for the indent on the second paragraph.

Here it goes, from the top:

<body id="Ondska-epub-3" xml:lang="sv-SE">
<div class="_idGenObjectStyleOverride-1">
<h1 class="Rubrik--kapitel"><a id="_idTextAnchor002"></a>Kapitel 2</h1>

<p class="Inledning">Hej!</p>

<p class="Brödtext-med-indrag">Hallå!</p>

and from the CSS:
p.Inledning {
color:#000000;
font-family:Georgia, serif;
font-size:0.833em;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:1.45;
margin-bottom:0;
margin-left:0;
margin-right:0;
margin-top:0;
orphans:1;
page-break-after:auto;
page-break-before:auto;
text-align:justify;
text-decoration:none;
text-indent:0;
text-transform:none;
widows:2;
}

p.Brödtext-med-indrag {
color:#000000;
font-family:Georgia, serif;
font-size:0.833em;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:1.45;
margin-bottom:0;
margin-left:0;
margin-right:0;
margin-top:0;
orphans:1;
page-break-after:auto;
page-break-before:auto;
text-align:justify;
text-decoration:none;
text-indent:10px;
text-transform:none;
widows:2;
}

// ramusthomas
ramusthomas is offline   Reply With Quote