올바른 래퍼가 사이트 아래로 계속 떨어지는 곳에서 작업하고있는 사이트에 문제가 있습니다. 분명히 나는 그것을 오른쪽에 머물고 싶다.CSS : 오른쪽 래퍼가 페이지 끝에서 벗어납니다.
필자는 내 문제를 보여주는 테스트 사례를 작성했으며 더 좋은 방법이 있는지 궁금합니다.
웹 사이트 URL이 다음 http://www.musicworkshop.co.nz/
내 문제의 원인 (내가 생각하는) 테스트 케이스는, 그러나 그것은하지 않을 수 있습니다. 핑크색 상자가 페이지 너비에 맞지 않으면 드롭 다운됩니다.
필자는 올바른 래퍼의 스크린 샷과 함께 달성하고자하는 다이어그램을 포함 시켰습니다.
더 좋은 방법이 있나요?
존
<html>
<head>
<title> Test page </title>
<link rel="stylesheet" href="test.css" type="text/css" />
</head>
<body>
<div id="superbox">
<div id="box1">
</div>
<div id="box2">
</div>
<div id="box3">
</div>
<div id="box4">
</div>
<div id="box5">
</div>
<div id="box6">
</div>
</div>
</body>
</html>
#superbox{
width: 1000px;
height: 100px;
margin: 0 auto;
}
#box1{
height: 100px;
width: 200px;
background: red;
float: left;
}
#box2{
height: 100px;
width: 200px;
background: yellow;
float: left;
}
#box3{
height: 100px;
width: 200px;
background: blue;
float: left;
}
#box4{
height: 100px;
width: 200px;
background: green;
float: left;
}
#box5{
height: 100px;
width: 200px;
background: grey;
float: left;
}
#box6{
height: 100px;
width: 200px;
background: pink;
float: left;
}
alt text http://www.musicworkshop.co.nz/website.png
alt text http://www.musicworkshop.co.nz/website_right-wrap-missing.png
내 대답은 내 사이트에 대한 해결책이라고 생각하는 것으로 업데이트되었습니다. 그렇지 않으면 의견을 게시하여 수정할 수 있도록하십시오. 그렇다면 허용 된 답변으로 표시하는 "진드기"를 치십시오. –