.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
this will place a "." after the content of any element with .clearfix class applied ,
but what i dont understand is the rest proporties on what element they will be Applied on the clearfix element or on the next element in the html code ?!!!
those proporties ===>>> display: block;height: 0;clear: both;visibility: hidden;
:c-grin:?????!!!!!
3 replies to this topic
#1
Posted 21 January 2011 - 02:50 AM
|
|
|
#2
Posted 28 January 2011 - 02:32 PM
I never tried :after but I'm pretty sure they will be applied to the content of .clearfix:after which means only the "."
#3
Posted 31 January 2011 - 02:38 AM
i had replied to the other post u made on the javascript side look into that
#4
Posted 31 January 2011 - 11:48 PM
Element with this class would stop floating effect to elements placed after it.
I think any text content: of any length will do, not only ".", but will not be part of DOM.
That is what :after is for.
The clear: style requires clearfix to be a block element but its height is not necessarily zero.
I think any text content: of any length will do, not only ".", but will not be part of DOM.
That is what :after is for.
The clear: style requires clearfix to be a block element but its height is not necessarily zero.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









