$0.37

Hello! How to create multiple divisions within a single division in html?

Ask a question+
0

Hello! How to create multiple divisions within a single divison? How to arrange that divisions within a particular division freely?

add comment

1 Answer

0

/—————Style ——————/
.cont {
width: 100%;
}
.sm {
float: none;
padding: 10px;
}
.a {
background: dodgerblue;
}
.b {
background: green;
}
.c {
background: orange;
}
.d {
background: blue;
}
h1 {
color: #fff;
text-align: center;
}
/—————Style ——————/

<div class="cont">
<div class="sm a"><h1>First</h1></div>
<div class="sm b"><h1>Second</h1></div>
<div class="sm c"><h1>Third</h1></div>
<div class="sm d"><h1>Fourth</h1></div>
</div>

add comment

Your Answer