Forums

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

Home Forums CSS How do you turn off CSS content attribute so it doesn’t display anything

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45872
    ctecha
    Member

    Hi,

    Im trying to override some CSS in bootstrap that is loading content: “whatever here”. How do you turn off CSS content? I tried just making it blank in there like this: content: “” but that doesn’t work it still leaves a space there. I need to get rid of that space because its causing issues with my menu. Any ideas?

    Thanks

    #140739
    TheDoc
    Member

    This should work:

    content: none;

    #140741
    ctecha
    Member

    thank you. i tried that before and it didn’t work but just tried it again and works great. appreciate your help

    #140748
    Paulie_D
    Member

    I’m assuming this is a pseudo element?

    Does it have padding, width, height, borders etc?

    #140751
    ctecha
    Member

    yup its a pseudo element. i think it might have had padding and margin. at one point i had turned off everything and there was still a space before the text there where the content: “” was putting it. this time though setting content: none worked which is great

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