please follow me i Will markyou brainlist
Answers
Answered by
29
Answer:
Answered by
7
<!DOCTYPE html>
<html>
<head>
<style>
{
box-sizing: border-box;
}
.box {
float: left;
width: 33.33%;
padding: 50px;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
</style>
</head>
<body>
<h2>Grid of Boxes</h2>
<p>Float boxes side by side:</p>
<div class="clearfix">
<div class="box" style="background-color:#bbb">
<p>Some text inside the box.</p>
</div>
<div class="box" style="background-color:#ccc">
<p>Some text inside the box.</p>
</div>
<div class="box" style="background-color:#ddd">
<p>Some text inside the box.</p>
</div>
</div>
<p>Note that we also use the clearfix hack to take care of the layout flow, and that add the box-sizing property to make sure that the box doesn't break due to extra padding. Try to remove this code to see the effect.</p>
</body>
</html>
</tex>
Similar questions
World Languages,
4 months ago
Computer Science,
4 months ago
English,
4 months ago
History,
8 months ago
Math,
8 months ago
Biology,
11 months ago