Hallo Leute,
Bin ganz neu hier und habe schon in vielen Foren nachgeschaut um ein Div mittig zu positionieren.
Leider hat keines der Tips geholfen. :(
Ich glaube ich habe etwas grundlegendes in der Css/Html datei falsch gemacht, deswegen kann ich das Div (Container/Container_inhalt) nicht zentrieren.
Es soll einfach horizontal mittig zentriert werden :(
Bin etwas verzweifelt, würde mich echt freuen wenn mir jemand etwas unter die Arme greifen kann :*
LG,
Lisa :)
Hier der CSS Code:
Bin ganz neu hier und habe schon in vielen Foren nachgeschaut um ein Div mittig zu positionieren.
Leider hat keines der Tips geholfen. :(
Ich glaube ich habe etwas grundlegendes in der Css/Html datei falsch gemacht, deswegen kann ich das Div (Container/Container_inhalt) nicht zentrieren.
Es soll einfach horizontal mittig zentriert werden :(
Bin etwas verzweifelt, würde mich echt freuen wenn mir jemand etwas unter die Arme greifen kann :*
LG,
Lisa :)
Hier der CSS Code:
Code:
@charset "UTF-8";
/* CSS Document */
/* the bit that does the work */
body {
margin:0;
border:0;
padding:0;
height:100%;
max-height:100%;
background:#fff;
font-family:arial, verdana, sans-serif;
font-size:76%;
overflow: hidden;
}
/* for internet explorer */
* html body {
padding:120px 0 50px 0;
}
#container {
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 1.2em;
position:fixed;
top:120px;
left:0;
bottom:50px;
right:0;
overflow:auto;
background:#FFF;
padding:20px;
text-align:center;
width:auto;
}
* html #container {
height:100%;
width:100%;
}
#container_inhalt {
position:absolute;
left:200px;
}
#header {
position:absolute;
top:0;
left:0;
width:100%;
height:128px;
overflow:hidden;
text-align:center;
background:#000000;
border-bottom:1px solid #000000;
}
* html #header {height:127px;}
#footer {
position:absolute;
bottom:0;
left:0;
width:100%;
height:135px;
overflow:hidden;
text-align:center;
background:#000000;
border-top:5px solid #000000;
}
* html #footer {height:130px;}
/* end of bit that does the work */
h1 {font-size:4em; margin:0; padding:0;}
#footer p {
color:#fff;
margin:5px 10px 0 10px;
}
#header img {
margin:10px 10px 0 10px;
}
#container img {margin:5px;}
#absolute {
position:absolute;
top:400px;
right:100px;
width:200px;
background:#ddd;
padding:10px;
border:1px solid #000;
}
#left {
float:left;
background:#eee;
padding:10px;
border:1px solid #000;
color:#000;
width:50%;
}
#right {
float:right;
background:#ddd;
padding:10px;
border:1px solid #000;
color:#000;
}
a, a:visited {
font-size:1.1em;
text-decoration:none;
color:#ddd;
}
a:hover {
color:#fff;
text-decoration:none;
}
.grey {color:#888;}
.ltgrey {color:#ddd;}
img#mascot {float:right;}
#header ul {
clear:both;
text-align:center;
}
#header ul {
margin:0;
padding:0;
list-style-type:none;
background:transparent;
height:3em;
}
#header ul li {
display:inline;
color:#000000;
}
.strike {text-decoration:line-through;}
.lft {float:left;}
.rgt{float:right;}
.columnone, .columntwo {width:31%; float:left; text-align:justify; margin-right:2%;}
.columnthree {text-align:justify; border:1px solid #fff;}
* html .columnthree {border:0;}
hr {clear:both; border:0; height:1px; color:#888; background-color:#888;}
.columnthree a, .columnthree a:visited {font-size:1em; color:#000; text-decoration:underline;}
.columnthree a:hover {color:#888; text-decoration:none;}
#menuwrapper{ position:relative;
width:950px;
margin:auto;
padding-top:0px;
background: url(../images/bg-wrapper-01.jpg) no-repeat; z-index:3}
/* Everything monkey Menu */
ul#menu{margin:auto; padding:auto; list-style:none; clear:both; float:right; z-index:1}
#menu li{text-indent:-9999px; display:inline; margin-top:90; float:left; margin-right:10px;}
#menu li a{background:url('../images/menu-sprite.jpg') no-repeat; width:100%; height:100%; display:block;}
/* Home Button */
#menu li.home{width:43px; height:17px;}
#menu li.home a{background-position:-1px -0px;}
#menu li.home a:hover{background-position:-1px -34px;}
#menu li.home a.selected{background-position:-1px -17px;}
/* Dates Button */
#menu li.dates{width:48px; height:17px;}
#menu li.dates a{background-position:-44px -0px;}
#menu li.dates a:hover{background-position:-44px -34px;}
#menu li.dates a.selected{background-position:-44px -17px;}
/* Location Button */
#menu li.location{width:68px; height:17px;}
#menu li.location a{background-position:-90px -0px;}
#menu li.location a:hover{background-position:-90px -34px;}
#menu li.location a.selected{background-position:-90px -17px;}
/* Gallery Button */
#menu li.gallery{width:61px; height:17px;}
#menu li.gallery a{background-position:-159px -0px;}
#menu li.gallery a:hover{background-position:-159px -34px;}
#menu li.gallery a.selected{background-position:-159px -17px;}
/* Veranstalter Button */
#menu li.veranstalter{width:97px; height:17px;}
#menu li.veranstalter a{background-position:-222px -0px;}
#menu li.veranstalter a:hover{background-position:-222px -34px;}
#menu li.veranstalter a.selected{background-position:-222px -17px;}
/* Partner Button */
#menu li.partner{width:64px; height:17px;}
#menu li.partner a{background-position:-318px -0px;}
#menu li.partner a:hover{background-position:-318px -34px;}
#menu li.partner a.selected{background-position:-318px -17px;}
/* Impressum Button */
#menu li.impressum{width:76px; height:17px;}
#menu li.impressum a{background-position:-386px -0px;}
#menu li.impressum a:hover{background-position:-386px -34px;}
#menu li.impressum a.selected{background-position:-386px -17px;}
/* styling_footer */
#typo {
width:100%;
position:relative;
background: url(../images/hg-lila.gif);
}
.affentext {
position:relative;
width:950px;
margin:0 auto;
padding-bottom:0px;
background: url(../images/bg-wrapper-01.jpg) no-repeat;
}
.affentext2 {
width:950px;
height:135px;
margin:0 auto;
}
/* text-holder */
.text-holder {
width:100%;
overflow:hidden;
font-size:69px;
line-height:61px;
text-transform:uppercase;
letter-spacing:-1px;
color:#ab76b8;
}
.cufon-active .text-holder {
font-size:69px;
line-height:69px;
padding:0 0 6px;
}
.text-holder p {margin:0;}
.text-holder p span {color:#8f49a0;}
.text-holder p .cufon {
margin:0 0 -8px;
float:left;
}
.logoplatzhalter {
height: 100px;
width: 100px;
z-index: 1;
float: left;
}
#slideshow {
position:relative;
height:350px;
}
#slideshow IMG {
position:absolute;
top:0;
left:0;
z-index:8;
opacity:0.0;
}
#slideshow IMG.active {
z-index:10;
opacity:1.0;
}
#slideshow IMG.last-active {
z-index:9;
}
Zuletzt bearbeitet: