View Single Post
Old 08-06-2018, 02:27 AM   #413
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by ShellShock View Post
The book I am currently reading has paragraphs defined like this:

Code:
<p class="firstpara">blah blah blah</p>
<p >blah blah blah</p>
<p >blah blah blah</p>
And the css:

Code:
.firstpara {
  text-indent: 0;
}
p {
  text-indent: 0;
  padding-bottom: 0;
}
p+p {
  text-indent: 1.3em;
}
The intention is for all but the first paragraph to be indented, but this does not happen in MapleRead. Other readers work OK. Is this a bug? I tried putting spaces around the + in the style e.g., "p + p" but this did not work either.

According to https://www.w3schools.com/cssref/css_selectors.asp, "p+p" should select all <p> elements that are placed immediately after <p> elements.
Couldn't you just do this:

Code:
.firstpara {
  text-indent: 0;
}
p {
  text-indent: 1.3em;
  padding-bottom: 0;
}
DuckieTigger is offline   Reply With Quote