+ 8
How do you vertically align tables in HTML and CSS?
The <center> tags only center it horizontally. margin-top: 50%; vertically centers the text most of the time, but not when the browser is resized. vertical-align: center; only vertically centers the text inside the table.
2 Réponses
+ 6
position:absolute ;
margin:auto;
left:0;
right:0;
top:0;
bottom:0;
In CSS.
+ 6
Thanks Roneel 👍