Ich kann nicht sehen, wo das Problem ist, aber .topbar
ist nicht zentriert, wie es sein sollte ... Abstand von links und rechts sollte gleich sein.Zentrum Flüssigkeit Layout
Dies ist mein Code:
<!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" />
<title>asd</title>
</head>
<body>
<div class="wrapper">
<div class="topbar">asd</div>
</div>
</body>
</html>
* {
margin:0;
padding:0;
}
body {
background:#000;
font:14px Arial, Helvetica, sans-serif;
background-color:#FFF;
background-repeat:repeat;
}
.wrapper {
width:90%;
min-widht:200px;
margin:0 auto;
}
.wrapper * {
float:left;
}
.topbar {
width:inherit;
height:50px;
background:#000;
}