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

Home Forums CSS Remove a word with CSS

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #264614


    I have an answer for you.

    I have this code

    Tags: Destacado, Gobernance

    I need that the tag “Destacado” never show in this page.

    How can I do it with conditional selector?

    Is it possible?

    Thank you

    Happy New Year


    I can’t say for sure from the half-broken code sample you posted, but you might be able to target the anchor tag that surrounds “Destacado” with an nth-of-type or nth-child selector, and visually hide it with CSS. Note that it would likely fail if the tag order changed though. And you’ll probably be unable to target the trailing comma, unless it too was enclosed in its own span or something (doubtful – it’s probably plain text). JavaScript would be more robust; maybe manipulate the textContent or innerHTML

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