Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 1
Vertically centering a div in body?
2 ответов
+ 2
add this "margin: 0 auto"
Example:
<div style="width:200px; background-color:red; margin: 0 auto">
content
</div>
0
Add a class to the div and then use CSS to align it