overflow: scroll का उपयोग
overflow: scroll कंटेंट को क्लिप (काट) देता है और **हमेशा** स्क्रॉलबार दिखाता है (हॉरिजॉन्टल और वर्टिकल दोनों), भले ही कंटेंट ओवरफ्लो न हो रहा हो।
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
div {
background-color: orange;
width: 250px;
height: 45px;
border: 2px solid blue;
overflow: scroll;
}
</style>
</head>
<body>
<h1>Heading</h1>
<div>Overflow property used here. This is a demo text to show the working of CSS overflow: scroll. This won't hide the content. Now a scrollbar will be visible.</div>
</body>
</html>
नुकसान: अनावश्यक स्क्रॉलबार यूजर इंटरफेस को अव्यवस्थित करते हैं। overflow: auto आमतौर पर बेहतर विकल्प है।