div | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

div

why we use div to support vertically align?

24th Aug 2016, 1:06 AM
Kemp
Kemp - avatar
1 Answer
0
Becouse div is a block element, and selector like div, whith display:block, default is set one under another.
24th Sep 2016, 10:23 AM
Piotr Łaszczych
Piotr Łaszczych - avatar