How do I center a div
horizontally inside its parent div
with CSS
?
<div id='parent' style='width: 100%;'>
<div id='child' style='width: 50px; height: 100px;'>Text</div>
</div>
See Question&Answers more detail:osHow do I center a div
horizontally inside its parent div
with CSS
?
<div id='parent' style='width: 100%;'>
<div id='child' style='width: 50px; height: 100px;'>Text</div>
</div>
See Question&Answers more detail:os