Forums

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

Home Forums CSS css content property

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35643
    CameronDuthie
    Participant

    Hi,

    I was hoping someone would be able to help me i’ve come across this css property a few times now and was curious about what it does? I was hoping someone might be able to enlighten me.

    #div {
    content: “.”;
    }

    Thanks,

    #92720

    It’ll just add a . in your content.

    Check out this article: https://css-tricks.com/6555-css-content/

    You’ll usually find that just adding a “.” is usually used for a clear fix hack, to clear floating elements.

    #93135
    CameronDuthie
    Participant

    Thanks for the advice guys. I found using “.” did fix my floating elements. Still don’t understand why it fixed it, but it did. :)

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