RSS

CSS CLEAR Property

24 Sep

humm…….., this is really helpful in some scenario’s. Actually its not being to much used in general and basic css properties. But its really helpful and good to use, specially when we are playing with the float elements.

“Clear” help us to stop element to float left or right. Basically when we have more than one elements, and few of the elements which has less width than the parent element. Then there is a possibility that the items could float left or right, which is sometimes not desirable. By using css “clear” property, we can avoid such situations.

“Clear” has  five property values : left, right, both, none, inherited. “none” is the default property value of “clear”.

 
Leave a comment

Posted by on September 24, 2010 in CSS

 

Tags: , ,

Leave a comment