9951 explained code solutions for 126 technologies


cssCenter text vertically


div { height: 200px; line-height: 200px; }ctrl + c
div

text in this div will be vertically centered relative to its height (200px in this case)

line-height

this sets the height of text lines (if the same as height, text line will be centered vertically)