HTML Page mit DIV zentrieren
Verfasst von t0b1 am 17. April 2009 - 12:31
Eine XHTML konforme Webpage mit DIV Layout via CSS horizontal oder vertikal zentrieren ist mit folgendem CSS Stylesheet Code möglich:
div#page {
position:absolute;
top:50%;
width:400px;
height:200px;
left:50%;
margin-left:-200px; /* Hälfte der Breite */
margin-top:-100px; /* Hälfte der Höhe*/
Alternativ für neue Browser (>IE5.5):
div#page { margin:0 auto; }
Tags:
Relevant Content
- How to apply css to an iframe
- Farb Schemas für Webdesigns finden und entwickeln
- Freelancer for Drupal, SEO and Crestron Roomcontrol at www.hn-worX.de
- Captcha und WebForm unter Drupal
- Howto: TinyMCE in einem Panel Pane PopUp
- Google Calendar Sync mit Outlook
- beamer.de - Ihr Anbieter für Medientechnik
- Umstieg von Wordpress auf Drupal
- Wordpress und die Suchmaschinen
- t0b1's Page endlich online