|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123457
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
css pseudo elements and adjacent combinators in extra css?
Does extra_css support pseudo elements, adjacent combinators, etc, or is it supposed to? I did some testing of things like this:
Code:
blockquote p {font-size: 85%; margin-top: 0em; margin-bottom: 0em}
p.initial {text-indent: 0;}
p.initial + p {clear: left;}
blockquote + blockquote {padding 5em}
'p.initial + p's clear left does not appear in the final css, and neither are the settings for 'blockquote + blockquote'. I've tried the nested blockquotes without the plus sign '+', but no luck there either. Not sure if I'm dealing with a bug, a feature request, or if I'm just doing something wrong. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,627
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Have a look at the table in http://www.w3.org/TR/CSS2/selector.html to clear up your confusions.
Adjacent, descendant and child selectors are supported. The :first-letter pseudo selector is supported (it is basically converted into a <span> around the first letter. No other pseudo selectors are supported. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123457
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
That table is extremely helpful, thanks! Hadn't been able to find a tutorial/info that documented all the different types in one place. That rocks that this is all supported.
I see now I was mixing up adjacent and child selectors. If anyone reads this and needs an answer, I should have been using this for my blockquotes (which were nested): Code:
blockquote > blockquote {padding-left: 20%}
The 'p.initial + p' didn't work because of my workflow - I forgot the <p> tag and initial class hadn't created yet because I'd been using markdown. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a few extra css questions | marbs | Recipes | 12 | 11-20-2010 11:15 AM |
| Styling Elements in CSS - ADE and Sony | toskpro | Sony Reader | 0 | 07-19-2010 02:55 PM |
| using "Extra CSS" box | RedRoverJ | Calibre | 4 | 06-25-2010 08:08 PM |
| help with css | bobcdy | ePub | 2 | 02-13-2010 12:59 PM |
| Help with CSS, anyone? | rogue_ronin | Workshop | 36 | 08-14-2009 10:28 PM |