Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Tricky [rel* selector problem Re: Tricky [rel* selector problem

#73000
TheLeggett
Member

Yup, no selectors out there to do what you’re looking for. Javascript would be your best bet if you can’t change the code output for some reason (like Mottie suggests).

You can build selectors to find the value of an attribute, but this wouldn’t be very useful here (ie: input[type=”text”]).

You can also use the :empty pseudo class on elements with no children (or text). Again, don’t think this is quite what you’re looking for (http://jsfiddle.net/fcSGR/)

You can learn more about selectors at the following two links if you’re interested.

CSS3 Selectors: http://www.w3.org/TR/css3-selectors/
CSS2 Selectors: http://www.w3.org/TR/CSS2/selector.html (will work across more browsers)