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


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 (

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

CSS3 Selectors:
CSS2 Selectors: (will work across more browsers)