View Single Post
Old 03-18-2014, 08:55 PM   #1
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
Confusing global definitions in css

I don't know if this is the best place to post this or not. It's more of a coding issue than a Sigil issue so I'm going to try here.

Typically, most css that I edit are mostly made up of various class definitions. I'm try to clean up/improve an epub that only has a couple of class definitions and is made up mostly of global definitions. Here are some examples:

p { margin: 0px 0px 0px 0px; font-family: Times New Roman; }
p + p { text-align: justify; text-indent: 12px; margin-top: 0px; }
p + p b { text-align: justify; text-indent: 12em; margin-top: 0px; }

OK, I know p is paragraph. So all paragraphs with no other class assigned would default to the global p definition.

Now, what are p + p and p + p b and when would they come into play? I've never ran into these before.

Any light anyone could shed into this for me would be greatly appreciated.

Thanks.

- Byron
bfollowell is offline   Reply With Quote