3 ms·
Well there is one for the first: `text-align: center;`. But things can quickly get very complicated. This all needs to be done in the context of a ton of other
by joekrill 7y ago
Well there is one for the first: `text-align: center;`.
But things can quickly get very complicated. This all needs to be done in the context of a ton of other CSS rules that could alter layout. And by the way, what do you mean by "vertically centered"? Using the font's baseline? Text top? Bottom? How are we dealing with text overflow if there isn't enough room in your rectangular element?