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.
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
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,
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.
contentto the original element.contentis used only for generate pseudo elements. So, there would be onlydiv:beforeanddiv:afterallowed to placecontent