Forums

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

Home Forums CSS Remove Content after (

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #42216
    kilarurajesh2003
    Participant

    I have Content like **Casual User (Standard Reports) Power User(SQL/Direct)**

    Can I remove (Standard Reports) after Casual User and (SQL/Direct) after Power User i.e I should have content like **Casual User Power User** after CSS is applied. Please tell me what to do

    Please see the below link to see my page

    http://i.imgur.com/oMqJxvb.jpg

    #122190
    rosspenman
    Participant

    You would have to use JavaScript or some sort of server-side language to accomplish this. It can’t be done with CSS alone.

    JavaScript:

    element.innerHTML = element.innerHTML.replace(/((.*?))/g, ”);

    PHP:

    echo preg_replace(‘/((.*?))/g’, null, $text);

    #125170
    nexuss
    Member

    You could also use PHP Substring.

    #125184
    Andy Howells
    Participant

    You could use nth-child in your CSS to hide them.

    #125185
    Paulie_D
    Member

    I don’t understand. Are the labels not changeable at ALL?

    How are they generated?

    #125186
    Paulie_D
    Member

    Is there some reason we can’t do something like:


    #casual + label span {
    display:none;
    }

    #125187
    Andy Howells
    Participant

    Could even use attribute selectors if the labels are set up properly.

    input#check-you-want-to-hide { display: none; }
    label[for=”check-you-want-to-hide”] {display: none;}

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