.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; overflow:hidden;}
Contents Please explain what is the effect of "content: "\0020"; property?
\0020
inserts the Unicode code point U+0020, which is a space. So the code is equivalent to content: ' ';
.
content: x
replaces the content (= the displayed text) with the value x
.
However, in the snippet you’ve posted, this content is made invisible anyway so you won’t actually see anything. The code is a clearfix implementation to re-float elements on the page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With