Answers for "how to vertically align text in td in a table"

0

table td data in middle

vertical-align: middle
Posted by: Guest on November-26-2020
-1

html vertical text in table cell

.verticalTableHeader {
    text-align:center;
    white-space:nowrap;
    transform-origin:50% 50%;
    transform: rotate(90deg);

}
.verticalTableHeader:before {
    content:'';
    padding-top:110%;/* takes width as reference, + 10% for faking some extra padding */
    display:inline-block;
    vertical-align:middle;
}
Posted by: Guest on October-02-2021
0

table td data in middle

vertical-align: middle
Posted by: Guest on November-26-2020
-1

html vertical text in table cell

.verticalTableHeader {
    text-align:center;
    white-space:nowrap;
    transform-origin:50% 50%;
    transform: rotate(90deg);

}
.verticalTableHeader:before {
    content:'';
    padding-top:110%;/* takes width as reference, + 10% for faking some extra padding */
    display:inline-block;
    vertical-align:middle;
}
Posted by: Guest on October-02-2021

Code answers related to "how to vertically align text in td in a table"

Browse Popular Code Answers by Language