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.
It’ll just add a . in your content.
Check out this article: http://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.
You can’t apply content to the original element. content is used only for generate pseudo elements. So, there would be only div:before and div:after allowed to place content
Thanks for the advice guys. I found using “.” did fix my floating elements. Still don’t understand why it fixed it, but it did. :)
Not my favorite method of clearing floats, but if it works for you, great! :)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".