ถ้ามีตัวหนังสือยาวติดเป็นพืด หรือมีรูปอยู่ใน div ก็ใช้แบบที่ท่าน bouy2527 บอกก็ได้ครับ
แต่ถ้าจะให้แน่ใจให้แยก div เป็น 2 ชั้น ชั้นแรก scroll และชั้นใน fix จะ work กว่า
อีกอย่างให้ใช้ overflow-x:auto; จะทำให้ไม่แสดง scrollbar ถ้าข้อมูลยังไม่เกิน width
ตัวอย่างโค๊ดครับ
<html>
<head>
<style type="text/css">
div.scroll {width:100px; overflow-x:auto;}
div.fix {width:500px; height:100px; overflow:hidden;}
</style>
</head>
<body>
<div class="scroll">
<div class="fix">
You can use the overflow property when you want to have better control of the layout.<br />
The default value is visible.
</div>
</div>
</body>
</html>