css vertical align
.top-align {
vertical-align: top;
}
.center-align {
vertical-align: middle;
}
css vertical align
.top-align {
vertical-align: top;
}
.center-align {
vertical-align: middle;
}
vertical align css
/*
For a flexed item you can you align - items to center content vertically
you can use justify content to center horizontally
*/
.container {
display: flex;
align-items: center;
justify-content: center;
}
vertical align css
.container{
display: table;
}
.div-inside-container{
display: table-cell;
vertical-align: middle;
}
vertical align css
<div style="display: table; height: 400px; overflow: hidden;">
<div style="display: table-cell; vertical-align: middle;">
<div>
everything is vertically centered in modern IE8+ and others.
</div>
</div>
</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us