Jul 27, 2008

Div Scrolling

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Div Scrolling

kvarnerexpress
I've got the following line in an html page before a table that has lots of rows and columns:

Code:

CODE
<div style="HEIGHT: 500px; WIDTH: 1000px; OVERFLOW: auto">



That works perfectly in IE and FF to give me vertical and horizontal scrollbars. But what I really want is to size the horizontal scrollbar so it takes up 100% of the screen regardless of how big the screen is.

So, I tried changing 1000px to 100% like this:
Code:

CODE
<div style="HEIGHT: 500px; WIDTH: 1000px; OVERFLOW: auto">




Well, that works the way I would expect in FF (perfect) but in IE I do not get any horizontal scrollbar. Any idea how to tinker with it (without using frames) so I get the horizontal scrollbar in IE too?

kvarnerexpress
__________________

Reply

arboc7
All I can think of is that you might try "overflow: scroll;" instead of auto...let me know if that works.

Good luck!

Reply

truefusion
Arboc7's suggestion should do it, but i believe IE doesnt show the scrollbar when placed on "auto", unless scrolling is required. Thus, why they call it "auto".

Reply

Tyssen
Horizontal scrollbars are a bad thing. Why would you actually want one?

Reply

arboc7
I missed horizontal scrollbars...really, why do you want them?

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : div scrolling

  1. Frames And Scrolling - (2)
  2. Frame Scrolling - (5)
    hi, i have a question about scroll bars for frames. i have two frames on my page and both have
    scrolling set to "yes". it works like i want in IE; even if there is no need for a scroll bar there
    is a faded out scroll bar that takes up the space. in fire fox and nestscape navigator there is no
    faded scroll bar when there is no need for one. there's just an ugly white gap. is there a way
    to make the scroll bar appear faded like it does in IE? or maybe there's a way to always
    heighten the area just enough so that the scroll bar is always neccessary. thanks, ...



Looking for div, scrolling

Searching Video's for div, scrolling
advertisement



Div Scrolling



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE