Re: Scrollable divs
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Wed, 08 Mar 2006 20:48:18 -0500
dNagel said the following on 3/8/2006 2:18 PM:
Daniel Kirsch wrote:
> dana lees wrote:
>
>> i would like to add the ability to roll over the area of the div and
>> scroll
>> up or down to see the whole content.
>>
>> Is that possible?
>
>
> Yes.
Nice answer Daniel... loser.
CSS will permit you to force a div to be scrollable instead of sizing to it's content.
No, you can not "force" *anything* on the web. CSS only allows you to suggest.
Use the style attribute "overflow" and set it to scroll or auto.
And hope the browser honors it. The user could have a user defined stylesheet or simply have IE set to ignore all styles in a page.
http://www.w3schools.com/css/pr_pos_overflow.asp
If the quality of the CSS section matches that of the Javascript section then that site is completely better off being left alone.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- Follow-Ups:
- Re: Scrollable divs
- From: Anthony Jones
- Re: Scrollable divs
- References:
- Scrollable divs
- From: dana lees
- Re: Scrollable divs
- From: Daniel Kirsch
- Re: Scrollable divs
- From: dNagel
- Scrollable divs
- Prev by Date: Re: Scrollable divs
- Next by Date: Regular Expressions problem...
- Previous by thread: Re: Scrollable divs
- Next by thread: Re: Scrollable divs
- Index(es):
Relevant Pages
|