Reply
scrolling text box
Old 08-21-2008, 09:51 AM scrolling text box
Junior Talker

Posts: 3
new here...i currently manage a high school website. i'm trying to add a scrolling text box to it over a blue background that's already there. i can add a box, but not where i want it. There's a text box on the left and i want the scrolling one on the right. i also have little experience with web design so any help is appreciated. thanks!
Amadeus is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-21-2008, 02:20 PM Re: scrolling text box
wayfarer07's Avatar
$frontend->developer

Posts: 1,335
Name: Abel Mohler
Location: Asheville, North Carolina USA
Scrolling boxes are usually made by setting a height on a <div>, then setting the overflow to auto in the CSS like this:
HTML Code:
<head>
<style type="text/css">
#box {
height: 200px;
overflow: auto;
}
</style>
</head>
<body>
<div id="box">
<p>Some nonsense you want to talk about</p>
</div>
Now, with a height of 200px, there will be no scrollbars, but if you add more text, once it "overflows", scroll bars will be added to allow for it. This is usually preferable to overflow:scroll;
__________________
<!--if a signature drops in the forest, and no one is there to see it, does it make a link?-->

Last edited by wayfarer07 : 08-21-2008 at 02:21 PM.
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 08-21-2008, 02:35 PM Re: scrolling text box
Junior Talker

Posts: 3
thanks. where do i write it? I try to put it on the page NEXT to the other text box but it won't let me..
Amadeus is offline
Reply With Quote
View Public Profile
 
Old 08-21-2008, 03:43 PM Re: scrolling text box
wayfarer07's Avatar
$frontend->developer

Posts: 1,335
Name: Abel Mohler
Location: Asheville, North Carolina USA
I guess you must think I am psychic. Of course I would have no idea without looking at the code you have, and even better would be a link. Normally to put a div next to another div, you float it.
__________________
<!--if a signature drops in the forest, and no one is there to see it, does it make a link?-->
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 08-21-2008, 07:17 PM Re: scrolling text box
Junior Talker

Posts: 3
what, you're not? thanks and i'll give it a try
Amadeus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to scrolling text box
 

Thread Tools

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.12299 seconds with 12 queries