div
text-align:center;
}It’s all said and done, haha.
You can also add a link-height: line height
You can center it horizontally and vertically
That’s not what I mean. I want to test2. In the first div, the outermost div is centered and aligned
< div id="div2" style="text-align: center;">test2
That’s not what I mean. I want test2, which is the outermost div in the first div. Center alignment
Then put div2 width:100%;
That's not what I meant. To test2, in the first div, the outermost div is centered and aligned
Then put div2 width:100%;
It makes sense upstairs
If you add a