View Single Post
Old 07-28-2018, 03:32 AM   #412
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
p+p css not working

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.
ShellShock is offline   Reply With Quote