kullandığın marginler işi bozuyor.
margin yerine, box-sizing: border-box; ve padding kullanırsan bu sorunu çözersin.
box-sizing:
http://css-tricks.com/box-sizing/
Kodları aşşağıda.
<!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>Untitled Document</title>
<style>
div {
color:#fff;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
height:400px;
}
.container {
width:90%;
min-width:1000px;
margin:0 auto;
}
.cleft {
width:20%;
min-width:200px;
float:left;
background:#000;
}
.cright {
width:20%;
min-width:200px;
float:left;
background:#000;
}
.ccenter {
width:60%;
float:left;
padding:0px 20px;
}
.ccenter .content {
width:100%;
background:#f00;
}
</style>
</head>
<body>
<div class="container">
<div class="cleft">1</div>
<div class="ccenter">
<div class="content">2</div>
</div>
<div class="cright">3</div>
</div>
</body>
</html>
oncelikle tesekkur ederim,
sol tarafi 15%
sag taraf 20%
orta 65% yaptigim zaman kuculturken ayni sekilde kayma yapiyor acaba neden di r?