Forums

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

Home Forums CSS Tricky [rel* selector problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30483
    kedsta
    Member

    I’m trying to target one specific td on a page of other tds…one that that contains certain words; Out of stock (I use Netsuite and a great deal of their content is auto generated so div and table ids are relatively rare) I’m trying to get it to { display: none; } and would love to find a CSS selector that could to that.

    Any thoughts?

    #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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.