answersLogoWhite

0

How do you get a scrollbar on your HTML?

Updated: 8/19/2019
User Avatar

Wiki User

12y ago

Best Answer

You need to make the height (or width) bigger than the browser window, so you can scroll down. There is no HTML code for a scroll bar. You need to make the page long (or wide) enough, otherwise there would be nothing to scroll down (or sideways) to. Example:

<html>

<head>

<style type="text/css" >

#main {

width:1000px;

height:1500px;

}

</style>

</head>

<body>

<div id="main">

<h1>My website</h1>

<p>This is my website, and as you can see, it has scroll bars.</p>

</div>

</body>

</html>

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get a scrollbar on your HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you change your scrollbar color?

on piczo ho on to a HTML box and type in &lt;STYLE type="text/css"&gt; &lt;!-- BODY { scrollbar-face-color: #000066; scrollbar-highlight-color: #0000CC; scrollbar-track-color: #330000; } --&gt; &lt;/STYLE&gt; Note: this is only the couler for my scrollbar


Can you place an HTML div with a scrollbar in an email?

Yes. Set it out like normal HTML and in outlook go under Options -&gt; Format -&gt; HTML and in theory any HTML should work other than maybe HTML 5.


What is a horizontal scrollbar?

A Horizontal scrollbar is a scrollbar that allows you to pan horizontally.


Do only male cats strut?

No. Butch cats strut too.::-webkit-scrollbar-track-piece:vertical {background-color:undefined;-webkit-border-radius: 0px;}::-webkit-scrollbar-track-piece:horizontal {background-color:undefined-webkit-border-radius: 5px;}::-webkit-scrollbar {width: 9px;height: 9px;}::-webkit-scrollbar-thumb{ background-color:undefined; -webkit-border-radius:6px;}::-webkit-scrollbar-thumb:hover{background-color:undefined;!important -webkit-border-radius:6px;}


Where is the scroll bar located on an Excel worksheet?

There are two of them. The vertical scrollbar is up the right side of the worksheet. The horizontal scrollbar is across the bottom of the worksheet.


Used to display different parts of a document?

Scrollbar


Where is the scrollbar located in a word document?

The scrollbar in a Word document is typically located on the right side of the document window. You can use it to scroll up and down to navigate through your document.


How do you make the scrollbar thingy stay when using the arrows?

I wish I knew :/


What is a split bar in Excel 2010?

There is a narrow bar at the top of the vertical scrollbar and one at the right end of the horizontal scrollbar that can be dragged onto the window to split it. They can be dragged off to remove the split. These are split bars.


What is the purpose of a scrollbar?

control element with which continuous text or anything else can be scrolled


How would you describe a thundestorm for a story?

As i sit here gazing in the pitch black night sky a flash of lightning tears the once peaceful night sky. I hide behind my bed, a tremble of fear shivers through my spine.I hate thunder storms!::-webkit-scrollbar-track-piece:vertical {background-color:undefined;-webkit-border-radius: 0px;}::-webkit-scrollbar-track-piece:horizontal {background-color:undefined-webkit-border-radius: 5px;}::-webkit-scrollbar {width: 9px;height: 9px;}::-webkit-scrollbar-thumb{ background-color:undefined; -webkit-border-radius:6px;}::-webkit-scrollbar-thumb:hover{background-color:undefined;!important -webkit-border-radius:6px;}


Located at the end of each scrollbar?

It is a maximum protestants of cycle of life that skeepp eve