Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do you create a scroll bar in a div tag??
Old 06-23-2008, 07:26 PM How do you create a scroll bar in a div tag??
Average Talker

Posts: 27
Name: Chad
Trades: 0
In dreamweaver, how do you create a scroll bar in a div tag??

< link drop removed >

Last edited by chrishirst; 06-24-2008 at 03:35 AM..
johnsocej is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-23-2008, 08:18 PM Re: How do you create a scroll bar in a div tag??
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I don't know about Dreamweaver (even though I use it every day), but the normal way of putting scrollbars on a div is by setting a height to it, and making the overflow auto:

HTML Code:
<head>
<style>
#scroll {
height: 100px;
overflow: auto;
}
</style>
</head>
<body>
<div id="scroll">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
Now, if the text in the box overflows so that it would be greater than 100px tall, scrollbars will be added in order to allow it to be visible.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-23-2008, 09:44 PM Re: How do you create a scroll bar in a div tag??
RabidSniper's Avatar
Skilled Talker

Posts: 57
Name: Jesse
Location: Phoenix, AZ
Trades: 0
Yah... sorry.. duplicate post

Last edited by RabidSniper; 06-23-2008 at 09:45 PM..
RabidSniper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do you create a scroll bar in a div tag??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.07961 seconds with 12 queries