![]() |
#1 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Cascading Styles & Specificity
This is probably not a Sigil thing, but it's showing up in a Sigil report and I can't figure out if it's my (lack of) understanding of Specificity/Cascading Styles, or if the report function has a baby gremlin...
I have some CSS in the middle of the stylesheet: Code:
div.quote p.sig {margin:1em 0 0; text-align:right} Code:
blockquote.write p.sig {text-align:right; margin:.25em 0 2em} Code:
<blockquote class="write"> <p>Howdy,</p> <p>Yadda - Yadda</p> <p>Yadda Yadda Yadda</p> <p class="sig">Mary Poppins</p> </blockquote> Code:
blockquote.write p.sig { text-align: right; margin: .25em 0 2em; } ![]() |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
The Report does static analysis of only class selectors. Use the Inspector to see the live css being applied. So what does the Inspector show for the css being applied to that element?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Might need to see a sample epub. I created a simple one from just the data given and both Reports and DevTools showed the "blockquote.write p.sig" selector being used.
Though as Kevin mentioned, the Sigil Reports figure is more for statistical analysis (this class IS being used) rather than for visible css prioritization. Last edited by DiapDealer; 01-20-2020 at 06:56 PM. |
![]() |
![]() |
![]() |
#4 | ||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
"Have you tried turning it off and on again?"
![]() |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Too many styles? | Ghitulescu | Calibre | 5 | 12-12-2014 03:19 PM |
<hr /> styles | trstill | Introduce Yourself | 1 | 05-30-2010 01:57 PM |
Reference Lie, Hakon & Bos, Bert: Cascading Style Sheets, level 1. IMP. v1.0 4 Sept 2007 | DaleDe | IMP Books (offline) | 0 | 09-04-2007 02:12 PM |