.cell {
vertical-align: middle;
display: table-cell;
}
html:
<div id="parent">
<div id="child">Content here</div>
</div>
css:
#parent {display: table}
#child {
display: table-cell;
vertical-align: top;
}
IE Fix:
child {display: inline-block}
thead {
display: table-header-group;
vertical-align: middle;
border-color: inherit;
}
Code Example |
---|
Css :: how to remove border on button click |
Css :: hex code for khaki |
Css :: scss transition |
Css :: cdd first child |
Css :: css smooooooth scroll |
Css :: div fit content height |
Css :: invert png color css |
Css :: css not last of type |
Css :: disable text selection |
Css :: css detect mobile |
Css :: centering css elements |
Css :: scroll tbody fixed thead |
Css :: blazor spinner css in wwwroot/css/site.css |
Css :: gradient over image css |
Css :: make a paragraph fit in div |
Css :: backdrop filter property for safari not working |
Css :: mat slider custom color |
Css :: wordpress link post tags |
Css :: blue color when button click web mobile |
Css :: how to remove margin of body |
Css :: sans serif font family css |
Css :: text stock css |
Css :: how to make a triangle in css |
Css :: css parallelogram |
Css :: css grow |
Css :: min and max width media query |
Css :: how to prevent select image in css |
Css :: center tecxt css |
Css :: no hover effect css |
Css :: overflow scrollbar with variable height |