The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › css content property
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,
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.
Thanks for the advice guys. I found using “.” did fix my floating elements. Still don’t understand why it fixed it, but it did. :)