<div class="sections-div">
<section class="eachsec">section1</section>
<section class="eachsec">section2</section>
<section class="eachsec">section3</section>
</div>
In CSS:
.sections-div {
display: inline;
}
I want it to appear in the format
"section1 section2 section3"
How to solve it using block or inline or inline-block?
TIA
2
Answers
You can use the following CSS for the child tags using
inline-block
orinline
:NOTE: Section tag grouped the generic block of related contents. You should avoid using the
<section>
tag to inline any content.hello you an use the display : flex; together with flex-direction : row; .We can also use the grid system layout