
Originally Posted by
aoshima
i try that and it doesn't work instead of making them like the site, mine turns into a stairs, did i do something wrong ?
It'll be because you didn't clear your floats. There's a couple of ways to fix this:
First way: Very simply makes sure each div and it's contents will appear below any floated elements:
Code:
fieldset div {
clear: both;
}
More: http://www.w3schools.com/css/pr_class_clear.asp
Second way is a little more complex, and makes the div expand to contain any floated elements:
Code:
fieldset div {
height: 1%;
overflow: hidden;
}
More: http://www.pmob.co.uk/temp/float-clear.htm
Bookmarks