Quote (vittujenkevat @ May 22 2012 11:08am)
I have never used that site so didnt even know you can test it like that.
Checked it now as didnt have time earlier, and yes it works as I want (atleast on my computer, have to check it out tomorrow at work) after I removed the width from class.
Code
#con{
width: 400px;
}
.item{
float: left;
border: 1px solid red;
border-style: inset;
overflow: hidden;
padding: 2px 7px;
text-transform: capitalize;
}
.clear{
clear: both;
}
What does the clear property do?
Thanks for your time.
The clear property will force the element with clear under a floated element with the same value.
So if element1 has float:left, and element2 has clear:left, element2 will be forced under element1.
If element1 has float:left, and element2 has clear:both, element2 will be forced under element1 as well.
Now, if element1 has float:left, and element2 has clear:right, element2 will not be forced under element1.