View Single Post
Old 02-21-2011, 12:51 PM   #76
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,124
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
yep, but I tested with several books and the default P tag was adequate except for needing to style the indent & line space. It's lazy, I know , & probably will come back to bite me someday :-)

your cascade solution is elegant but it's not clear to dummies like me, from your post exacly how to do it.

is cascade
part of the solution, or a commentary ?

seems that to do it your way I have to add 1 lines or more to my .css ( which I could paste in from one I made earlier ) and then also run a regex

I am confused because I read somewhere that you can only have one class per tag, yet you seem to have found a way of having 2 - the calibre class + the firstpara class.
how come that works, but adding (in-line) style text:indent 0 where you added firstpara does not work - I am pretty sure I tried doing it in line & it failed , even with all brackets in the correct places.
You can have MANY SELECTORS, but only 1 Class= (see my example) <p> tag
Let's face it, there are garbage CSS as well as HTML code.

KISS you want to be able to 'read' the selectors and quickly understand what is going on, without drilling way deep through layers upon layers of Div, span, classes to see what ultimately affects the one word that looks awful. (I have seen 5 selectors, it was terrible to follow)

A quick peek says calibre 10 controls the style, except for the case we modify it with 'firstpara'
Important is to parse Selector lists Left to right. The last value is the one used.
OH! firstpara just Zeroes the indent
theducks is offline   Reply With Quote