This is my interesting
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<style type="text/css">
.bigbox {
width:1024px;
height:600px;
background-color:#000000;
overflow-x:auto;
overflow-y:hidden;
}
.box{
width:500px;
height:500px;
float:left;
background-color:#AAAAAA;
margin:5px;
}
</style>
</head>
<body>
<div class="bigbox">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</body>
</html>
What is the best way to make all boxes display horizontally?
Moreover, how can I ensure that the bigbox has a scroll bar
with a fixed width
?
I attempted to adjust the width to 5000px, which worked, but it caused the width to extend beyond the boxes.