In this case, the wrapper's height is calculated as zero. However, i wonder how it is sorted without wrapping all the items.
Html code is:
<!doctype html>
<html>
<head>
<style>
.wrapper {
width: 660px;
margin-left: auto;
margin-right: auto;
}
.item {
float: left;
width: 200px;
background-color: orange;
height: 200px;
margin-right: 10px;
margin-left: 10px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</body>
</html>
Thx, everyone.
What I'm curious about, I think align in this way is to put it in a frame. By the way, I thought that I put it in a frame that had a width but no height, so I asked a question. This is because even if there are more items, that is, even if there are six items, they are arranged with three items per line.