Re: Scrollable divs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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/
.



Relevant Pages

  • Re: viewable coordinates of an element
    ... javascript and web design as a whole, ... Is there a way to like when i scroll the DIV to this element, ...
    (comp.lang.javascript)
  • css print styles conflict with javascript precedence
    ... Hi all, minor newbie problem I hope you can help with, since I can't ... print (div in my print css), ... has javascript disabled (therefore also div ...
    (comp.lang.javascript)
  • Re: Static menu without frames
    ... This is the problem - I need the page to scroll but I need the ... Javascript equivalents high and low but all I can find are examples of ... It simple CSS positioning. ...
    (alt.html)
  • Re: Static menu without frames
    ... This is the problem - I need the page to scroll but I need the ... Javascript equivalents high and low but all I can find are examples of ... script that will do what I need? ... It simple CSS positioning. ...
    (alt.html)
  • Re: Image Help...
    ... >> like to be able to do in CSS if possible and 100% eliminate JS. ... >> cover images with a scroll button on each side. ... I basically wanted to eliminate the javascript as much as possible so ... that even guests to the site who use a browser w/o javascript would be ...
    (comp.infosystems.www.authoring.stylesheets)