CSS questine
CSS questine
Out of context: Reply #2
- Started
- Last post
- 13 Responses
- chow0
What's in the element? If it's just a single line of text without linebreaks, you can vertically center it by setting line-height to the same as height.
Otherwise, you'll need to use one of the techniques described here: https://css-tricks.com/centering…