Verticaal centreren
Handig script voor Under construction pag of landing page te gebruiken.
Zet een vlak midden in je browser.
Voorbeeld:
Script: 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<style type="text/css"> body,td,th { font-size: 14px; font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: left; } .ucp { width: 540px; height: 260px; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; border: 0px solid #F00; background-color: #FFF; padding: 20px; border-radius: 15px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); } </style>
<div class="ucp"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td>Tekst voor pagina</td> </tr> </table> </div>
|