[WEB4LIB] Using CSS to style the first occurence of an elemen
t nested within
Broun, Kevin (NIH/NCI)
brounk at mail.nih.gov
Fri Apr 22 12:20:51 EDT 2005
I think you want the ":first-child" pseudo-class, but note that this is a
CSS2 recommendation that's not supported in MSIE (yet). Probably better to
class those td's, bummer that it may be. This page, among many others,
documents this <http://www.w3schools.com/css/css_pseudo_classes.asp>.
- Kevin
-----Original Message-----
From: John Fitzgibbon [mailto:jfitzgibbon at Galwaylibrary.ie]
Sent: Friday, April 22, 2005 12:05 PM
To: Multiple recipients of list
Subject: [WEB4LIB] Using CSS to style the first occurence of an element
nested within
Hi,
I'm attempting to style the first table cell within certain table rows.
I'm using the following CSS instructions. The table cells do not have a
class attribute.
tr.selectedclass td:first-node{color:green;}
However, this is not working.
Any ideas would be most welcome.
Regards
John
John Fitzgibbon
Galway Public Library
Island House
Cathedral Square
Galway
Ireland
p: 00 353 91 562471
f: 00 353 91 565039
w: http://www.galwaylibrary.ie
*******************************************************************
Tá eolas atá príobháideach agus rúnda sa ríomhphost seo
agus aon iatán a ghabhann leis agus is leis an duine/na daoine
sin amháin a bhfuil siad seolta chucu a bhaineann siad.
Mura seolaí thú, níl tú údaraithe an ríomhphost nó aon iatán
a ghabhann leis a léamh, a chóipáil ná a úsáid.
Má tá an ríomhphost seo faighte agat trí dhearmad,
cuir an seoltóir ar an eolas thrí aischur ríomhphoist
agus scrios ansin é le do thoil.
This e-mail and any attachment contains information which is
private and confidential and is intended for the addressee
only. If you are not an addressee, you are not authorised
to read, copy or use the e-mail or any attachment.
If you have received this e-mail in error, please notify
the sender by return e-mail and then destroy it.
*********************************************************************
More information about the Web4lib
mailing list