Re: Two CSS selector questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stanimir Stamenkov

    Re: Two CSS selector questions

    Wed, 07 May 2008 08:26:43 -0800, /darius/:
    1) Is it possible to select a parent. For ex, I want to apply a style to
    an anchor link that is wrapped around an image,
    >
    <a href="/"><img src ="home.gif" /></a>
    >
    something like "a < img". Right now, I define an "a.img" class.
    In short no. One of the reasons is it makes the progressive
    rendering harder if not impossible. Next I've heard there are
    issues with the performance in cases of dynamic DOM and style
    changes, but I'm not really a CSS implementor and cannot give you
    further details.
    2) Viewing page source, I sometimes come across something like this
    >
    <div class="foo bar">
    >
    What is that? It doesn't seem to be covered on http://www.w3.org/TR/REC-CSS2/selector.html
    You should better refer to <http://www.w3.org/TR/CSS21/regarding
    CSS Level 2 as it is de facto the real standard. Multiple class
    selectors are covered in that same document you're referring to:



    The meaning of the 'class' attribute is covered by the HTML
    specification:



    --
    Stanimir
Working...