Hi
I am trying to put text inside a label in center
but its now working.
I have asked a similar kind of question here
but I want now text to be center from both horizontal and vertical.
Hi
I am trying to put text inside a label in center
but its now working.
I have asked a similar kind of question here
but I want now text to be center from both horizontal and vertical.
See if this helps?
td {
vertical-align:middle;
text-align:center;
}
thanks
text-align:center is enough if you have height is wrap-content
if you have given some height then
text-align:center
line-height:your height
both for horizontal and vertical center
… as long as the text does not wrap.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.