0

Center alignment

i want to place my name on center eith matrix backround

12th Jan 2017, 9:07 AM
Surya
Surya - avatar
2 Réponses
+ 3
Well you can do even ever shorter :P ( because the cell behaviour maximize already its dimensions in regards of its parent/container ): html { display:table; width:100%; height:100%; } body { display:table-cell; text-align:center; vertical-align:middle; } And obviously, you can adapt these rules to others html elements ;)
12th Jan 2017, 1:22 PM
visph
visph - avatar
+ 2
Try this: html, body { width:100%; height:100%; } html { display:table; } body { display:table-cell; text-align:center; vertical-align:middle; } ( in your css rules )
12th Jan 2017, 9:21 AM
visph
visph - avatar