solidariti
04-06-2006, 03:17 PM
what does clearfix, do? and how does it work?
|
Click to See Complete Forum and Search --> : clearfix solidariti 04-06-2006, 03:17 PM what does clearfix, do? and how does it work? felgall 04-06-2006, 05:01 PM it does whatever you define it to do. If you don't define it then it does nothing as there is no predefined functionality with that name. If you use the following code to define a class called clearfix then add it to any floated tags it will ensure that the following tag goes under the current content as if you had placed an empty div in the end of it with a style of clear:both. .clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;} * html .clearfix {height: 1%;} webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |