I need to place four elements something like this:
CSS:
code {
display: block;
text-align: center;
}
section {
display: inline-block;
text-align-last:center;
width: 35%;
margin: 1%;
padding: 1;
}
h1 {
color: #626262;
display: block;
text-align: center;
}
h2 {
color: #626262;
display: block;
}
#outer {
margin-left: 20%;
} %, -50%);
HTML:
<div id = "outer">
<section>
<h2>ELEMENT 1</h2>
</section>
<section>
<h2>ELEMENT 2</h2>
</section>
<section>
<h2>ELEMENT 3</h2>
</section>
<section>
<h2>ELEMENT 4</h2>
</section>
</div>
But on some platforms, such a page does not display correctly, tell me how to implement this task more correctly.
