New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to centralize a text in a div by css?
2 Answers
+ 2
you can centralize in div by this css code:
#div{
position:absolute;
left:0;
right:0;
margin-left:auto;
margin-right:auto;
}
+ 1
Use text-align : center;