Hallo,
ich frage mich schon die ganze zeit wie ich es mache das sich alles an jeden Monitor anpasst. Hier mal ein kleiner ausschnitt aus meinen css code:
body {
background-color:#ececec;
text-align:center;
}
#Website {
width:1920px;
margin: 0 auto;
}
#logo {
background-image: url('/images/logo.png');
width: 1920px;
height: 310px;
background-repeat: no-repeat;
background-position: center center;
z-index:1;
position:absolute;
}
#header {
background-image: url('/images/header.png');
width:1920px;
height:330px;
background-repeat: no-repeat;
background-position: center 40px;
z-index:0;
}
#menu2 {
background-image: url('/images/navi2.png');
width:1920px;
height:58px;
background-repeat: no-repeat;
background-position: center center;
}
nav#menu {
margin-top:-50px;
margin-left: 740px;
}
nav#menu ul{
padding:0;
margin:0;
}
nav#menu li{
float:left;
margin-top:10px;
}
nav#menu li a{
line-height:left;
font-weight: bold;
font:15,58 Pt Arial, Helvetica, sans-serif;
color:#ffffff;
margin-left: 40px;
padding:px 0px 2px 0px;
}
nav#menu li a:hover{
color: black;
}
#text
{
font-family: Arial;
font-size: 16px;
color: #FFFFFF;
margin-top: -25px;
margin-right: 490px;
z-index:6;
position:right;
text-align: right;
}
#Forum
{
font-family: Arial;
font-size: 16px;
color: #FFFFFF;
margin-top: -25px;
margin-left: 480px;
z-index:6;
position:absolute;
}
.login2 {
font: Arial, Helvetica, sans-serif;
font-weight: bold;
color:hsl(0,0%,0%);
text-shadow:1px 1px hsla(0,0%,20%,0.25);
z-index:1;
margin-left: 612px;
margin-top: 90px;
position:absolute;
}
.submit2 {
font: Arial, Helvetica, sans-serif;
color:hsl(0,0%,0%);
text-shadow:1px 1px hsla(0,0%,20%,0.25);
z-index:1;
margin-left: 812px;
margin-top: 106px;
position:absolute;
}
#UCPLoginText {
color: #9c9c9c;
font-weight: bold;
font: Arial, Helvetica, sans-serif;
z-index:1;
margin-left: 612px;
margin-top: 40px;
position:absolute;
}
#absenden {
background-image: url('/images/absenden.png');
width:90px;
height:25px;
background-position: center center;
background-repeat: no-repeat;
z-index:2;
margin-top: 12px;
margin-left:17px ;
position:absolute;
}
.pw {
font: Arial, Helvetica, sans-serif;
color:hsl(0,0%,0%);
text-shadow:1px 1px hsla(0,0%,20%,0.25);
z-index:1;
margin-left: 595px;
margin-top: 130px;
position:absolute;
}
#myButton{
width:130px;
height:50px;
background-repeat: no-repeat;
background-position: center -9px;
}
input[type=text], input[type=password] {
font-size: 12px;
font-family: Tahoma;
border: none;
width:125px;
height: 25px;
/*Textbox Schatten*/
-webkit-box-shadow: inset 0px 0px 0px 1px #f2f2f2;
-moz-box-shadow: inset 0px 0px 0px 1px #f2f2f2;
box-shadow: inset 0px 0px 0px 1px #f2f2f2;
/*Textbox Verlauf*/
background: #cdcdcd;
background: -moz-linear-gradient(top, #cdcdcd 0%, #f0f0f0 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cdcdcd), color-stop(100%,#f0f0f0));
background: -webkit-linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
background: -o-linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
background: -ms-linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
background: linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cdcdcd', endColorstr='#f0f0f0',GradientType=0 );
/*Textbox Kontur*/
border: 1px solid hsla(0,0%,20%,1);
/*Textbox Rundung*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
padding-left: 5px;
padding-right: 5px;
margin-left: 12px;
margin-right: 12px;
margin-top: 10px;
}
input[type=text]:hover, input[type=password]:hover{
font-size: 12px;
font-family: Tahoma;
border: none;
width:125px;
height: 25px;
/*Textbox Schatten*/
-webkit-box-shadow: inset 0px 0px 0px 1px #f2f2f2;
-moz-box-shadow: inset 0px 0px 0px 1px #f2f2f2;
box-shadow: inset 0px 0px 0px 1px #f2f2f2;
/*Textbox Verlauf*/
background: #cdcdcd;
background: -moz-linear-gradient(top, #cdcdcd 0%, #f0f0f0 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cdcdcd), color-stop(100%,#f0f0f0));
background: -webkit-linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
background: -o-linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
background: -ms-linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
background: linear-gradient(top, #cdcdcd 0%,#f0f0f0 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cdcdcd', endColorstr='#f0f0f0',GradientType=0 );
/*Textbox Kontur*/
border: 1px solid hsla(0,0%,75%,1);
/*Textbox Rundung*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
padding-left: 5px;
padding-right: 5px;
margin-left: 12px;
margin-right: 12px;
margin-top: 10px;
}