Asked 7 years ago
17 Apr 2017
Views 1387
sandee

sandee posted

how to apply vertical-align:middle to div in CSS ?

how to apply vertical-align:middle to div in CSS ?
Rasi

Rasi
answered Nov 30 '-1 00:00

use display:inline-block to apply vertical-align:middle


<div style="vertical-align:middle;text-align:center;display:inline-block;">
test
</div>
Post Answer