|
Posted by Nick Theodorakis on 03/25/06 23:10
Dylan Parry wrote:
> Pondering the eternal question of "Hobnobs or Rich Tea?", Nick
> Theodorakis finally proclaimed:
>
>> Any support for selectors like adjacent sibling (e.g., h2 + p) and
>> attribute selectors?
>
> Do you have a link to a page that demonstrates these? Then I can let you
> know :)
>
I use adjacent sibling combined with a first-letter pseudoclass here:
<http://theodorakis.net/blockcenter.html>
and on some other pages.
The relevant CSS is:
h1 + p:first-letter, h2 + p:first-letter, h3 + p:first-letter, h4 +
p:first-letter
{
font-size: 1.8em;
font-weight: bold;
font-family: Georgia, "Times New Roman", Times, serif;
vertical-align: bottom;
}
(which is in the file:
<http://theodorakis.net/article.css>
Effect is visible in Mozilla/Firefox but not in MSIE v6 or less.
Nick
--
Nick Theodorakis
nick_theodorakis@hotmail.com
contact form:
http://theodorakis.net/contact.html
Navigation:
[Reply to this message]
|