:first-child pseudo-class

liunx

Guest
i was wondering how much support the :first-child pseudo-class has? do all the browsers support it? thx :)It's supported for most users. And those for whom it is not, Is anything really lost?Originally posted by pawky
i was wondering how much support the :first-child pseudo-class has? do all the browsers support it? thx :)

Yes... support is sketchy, so be sure to only use it for minor elements, like I only use :last-child for the right quote mark on <blockquote>.ok, thx so ill use it only if its not a necessary thing but helps if it is supported, thx :)Originally posted by omega
Yes... support is sketchy, so be sure to only use it for minor elements, like I only use :last-child for the right quote mark on <blockquote>. Could you please show me where there is a mention of ":last-child" selector in the spec.?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title></title>

<style type="text/css">
<!--
q:before {color:#f00; content:'\201c'}
q:after {color:#f00; content:'\201c'}
-->
</style>

</head>
<body>
<p><q>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</q></p>
</body>
</html>

But don't try that with MSIE.Originally posted by Charles
Could you please show me where there is a mention of ":last-child" selector in the spec.? I know it's not part of the current spec, but once CSS3 is out, it'll be valid. And by the way, I use background images for the quotes on either side, which is why I needed a second element for the second quote.Originally posted by Charles
Could you please show me where there is a mention of ":last-child" selector in the spec.?

<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#first-child">http://www.w3.org/TR/REC-CSS2/selector.html#first-child</a><!-- m -->
its CSS2Originally posted by omega
I know it's not part of the current spec, but once CSS3 is out, it'll be valid. And by the way, I use background images for the quotes on either side, which is why I needed a second element for the second quote. It's been six years and Microsoft hasn't figured out CSS2, yet you're using CSS3 while half of it still just a working draft. Oy! And you're using background images instead of the perfectly good ways quote stuff in CSS2.What's wrong with using the images? It looks good, IMO at least. <http://projep.no-ip.com:81/archives/118-61-313/> (Only page I have with a quote)Originally posted by omega
What's wrong with using the images? It looks good, IMO at least. <http://projep.no-ip.com:81/archives/118-61-313/> (Only page I have with a quote) With what you're doing, it would be fine if you weren't using unapproved CSS.Who cares if it's approved? It's supported, and will soon be 'approved.' It's not being used for anything vital, or hindering anything accessibility-wise. It's even documented by the W3C, which is how I found out about it.
 
Back
Top