This is my code
<!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>
How can I make all box display horizontally?
And the bigbox has a scroll bar with the width fixed.
I have tried to change the width to 5000px, and it work, but the width is over the boxes
Demo — Jsfiddle Demo
HI now add some properties
as like this
Live demo