Elemen CSS Baris yang sama
#element1 {display:inline-block;margin-right:10px;}
#element2 {display:inline-block;}
Sbeajy
#element1 {display:inline-block;margin-right:10px;}
#element2 {display:inline-block;}
#block_container {
display: flex;
justify-content: center;
}
<div class='parent'>
<div class='child'>child 1</div>
<div class='child'>child 2</div>
</div>
.parent {
text-align: center;
}
.child {
display: inline-block;
vertical-align: middle;
}
#block_container
{
text-align:center;
}
#bloc1, #bloc2
{
display:inline;
}