Hallo, ich möchte eine Seite erstellen die Zentriert ist, leider klappt es nicht, eben hatte es beinahe geklappt da hat es nur im IE funktioniert, im Opera und FF, gings nicht.
www.lissners.net/test.html
www.lissners.net/test.html
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
margin:auto;
per CSS:
Code:margin:auto;
mfg Plankton
in einen Div mit der id "main". Und dann weise diesemlissners.net/test.html schrieb:<div id="top-navigation"><a href="test">Test</a><a href="test">Test</a><a href="test">Test</a><a href="test">Test</a></div>
<div id="content">Hier steht der Content</div>
margin:auto;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<meta name="author" content="Christian Schiessl" />
<meta lang="de" name="keywords" content="Hobbyastronomie, Astrofotografie, Tipps und Tricks zur astronomischen Bildbearbeitung" <meta name="robots" content="all" <title>="<meta name="robots" content="all" <title>" xxx</title="xxx</title" />
<style type="text/css" media="screen"><!--
.padbcont_rahmen { width:1024px; height:768px ; }
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#abstand {
height: 50%;
width: 100px;
margin-bottom: -14em;
float: left;
}
#inhalt {
height: 28em;
clear: left;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<meta name="author" content="Christian Schiessl" />
<meta lang="de" name="keywords" content="Hobbyastronomie, Astrofotografie, Tipps und Tricks zur astronomischen Bildbearbeitung" <meta name="robots" content="all" <title>="<meta name="robots" content="all" <title>" xxx</title="xxx</title" />
<style type="text/css" media="screen"><!--
.padbcont_rahmen { width:1024px; height:768px ; }
.padbox_rahmen { width:auto; height:auto; }
.navboxcont_head { width: 100%; height:124px}
.navboxleft_head { width:500px; float:left; height:124px}
.navboxauto_head { margin-left:500px; width:auto; height:124px}
.navboxcont_nav { width: 100%; height:644px}
.navboxleft_nav { width:213px; float:left; height:644px}
.navboxauto_nav { margin-left:213px; width:auto; height:644px}
.padbcont_inhalt {width:100%; height:644px }
.padbox_inhalt {width:auto; height:auto; padding:1px}
...
<div class="padbcont_rahmen">
<!--agl:cssobject id="rahmen" type="Padded Box" /-->
<div class="padbox_rahmen"></div>