what's the trick for a scrollbar these days?

Discussion in 'HTML' started by richard, Jan 23, 2011.

  1. richard

    richard Guest

    Used to be fairly simple. If you wanted scrollbars as needed, just add
    overflow:auto to the css.
    Now when I do that, all I get is the vertical scrollbar.
    Even with overflow:scroll, I get the vertical, and the horizontal shows the
    place holder thing, but no scrollbar.
    I've tried some tricks in trying to get the horizontal scroll but doesn't
    seem to work for me. While it works just fine when using scripts from
    outside sources. I just can't figure it out.
     
    richard, Jan 23, 2011
    #1
    1. Advertising

  2. richard the sto0pid wrote:

    > I just can't figure it out.


    So what else is new? <lol>

    Why don't you just copy the "script" where it *does* work?

    --
    -bts
    -What is the meaning of script?
     
    Beauregard T. Shagnasty, Jan 23, 2011
    #2
    1. Advertising

  3. On 23/01/11 19:25, richard wrote:
    > Used to be fairly simple. If you wanted scrollbars as needed, just add
    > overflow:auto to the css.
    > Now when I do that, all I get is the vertical scrollbar.
    > Even with overflow:scroll, I get the vertical, and the horizontal shows the
    > place holder thing, but no scrollbar.
    > I've tried some tricks in trying to get the horizontal scroll but doesn't
    > seem to work for me. While it works just fine when using scripts from
    > outside sources. I just can't figure it out.


    Let me check, you want to force horizontal scrolling?

    Rgds

    Denis McMahon
     
    Denis McMahon, Jan 23, 2011
    #3
  4. richard

    richard Guest

    On Sun, 23 Jan 2011 20:58:35 +0000, Denis McMahon wrote:

    > On 23/01/11 19:25, richard wrote:
    >> Used to be fairly simple. If you wanted scrollbars as needed, just add
    >> overflow:auto to the css.
    >> Now when I do that, all I get is the vertical scrollbar.
    >> Even with overflow:scroll, I get the vertical, and the horizontal shows the
    >> place holder thing, but no scrollbar.
    >> I've tried some tricks in trying to get the horizontal scroll but doesn't
    >> seem to work for me. While it works just fine when using scripts from
    >> outside sources. I just can't figure it out.

    >
    > Let me check, you want to force horizontal scrolling?
    >
    > Rgds
    >
    > Denis McMahon


    Precisely. Yes I know the consensus is, among those certain few, that
    horizontal scrollbares are the nastiest plague, but there are times when it
    becomes necessary.

    In my particular case, I need it to keep the data in the place where I
    intend it to be. Not break apart and make it look it sloppy.
     
    richard, Jan 23, 2011
    #4
  5. richard

    richard Guest

    On Sun, 23 Jan 2011 12:25:49 -0700, richard wrote:

    > Used to be fairly simple. If you wanted scrollbars as needed, just add
    > overflow:auto to the css.
    > Now when I do that, all I get is the vertical scrollbar.
    > Even with overflow:scroll, I get the vertical, and the horizontal shows the
    > place holder thing, but no scrollbar.
    > I've tried some tricks in trying to get the horizontal scroll but doesn't
    > seem to work for me. While it works just fine when using scripts from
    > outside sources. I just can't figure it out.


    I managed to figure it out and for my needs, it works just fine.
     
    richard, Jan 23, 2011
    #5
  6. richard

    richard Guest

    On Sun, 23 Jan 2011 13:58:17 -0800, Evan Platt wrote:

    > On Sun, 23 Jan 2011 12:25:49 -0700, richard <>
    > wrote:
    >
    >>Used to be fairly simple. If you wanted scrollbars as needed, just add
    >>overflow:auto to the css.
    >>Now when I do that, all I get is the vertical scrollbar.
    >>Even with overflow:scroll, I get the vertical, and the horizontal shows the
    >>place holder thing, but no scrollbar.

    >
    > Google will tell you how to do it. Fairly simple.
    >
    >>I've tried some tricks in trying to get the horizontal scroll but doesn't
    >>seem to work for me.

    >
    > There's a shocker.
    >
    >>While it works just fine when using scripts from outside sources.

    >
    > Read the source code. Figure out the difference between what you are
    > doing and what they are doing.
    >
    >>I just can't figure it out.

    >
    > That's your motto in life huh?


    I just love the words of wisdom from such an expert, who can't even get his
    own web site to function properly.
     
    richard, Jan 23, 2011
    #6
  7. richard

    dorayme Guest

    In article <>,
    richard <> wrote:

    > Used to be fairly simple. If you wanted scrollbars as needed, just add
    > overflow:auto to the css.
    > Now when I do that, all I get is the vertical scrollbar.
    > Even with overflow:scroll, I get the vertical, and the horizontal shows the
    > place holder thing, but no scrollbar.
    > I've tried some tricks in trying to get the horizontal scroll but doesn't
    > seem to work for me. While it works just fine when using scripts from
    > outside sources. I just can't figure it out.


    <div style="width: 450px; overflow: auto; background: #cfc;"><img
    style="margin: auto; display: block;" src="pic.png" width="900"
    height="900" alt=""></div>

    Gets you scrollbars on the div when needed. But to see the bottom
    ones, you have to scroll the browser normally to get to the
    bottom of the picture (and not, as on the planet I came from,
    floating above your computer <g>).

    --
    dorayme
     
    dorayme, Jan 23, 2011
    #7
  8. richard

    richard Guest

    On Mon, 24 Jan 2011 09:43:46 +1100, dorayme wrote:

    > In article <>,
    > richard <> wrote:
    >
    >> Used to be fairly simple. If you wanted scrollbars as needed, just add
    >> overflow:auto to the css.
    >> Now when I do that, all I get is the vertical scrollbar.
    >> Even with overflow:scroll, I get the vertical, and the horizontal shows the
    >> place holder thing, but no scrollbar.
    >> I've tried some tricks in trying to get the horizontal scroll but doesn't
    >> seem to work for me. While it works just fine when using scripts from
    >> outside sources. I just can't figure it out.

    >
    > <div style="width: 450px; overflow: auto; background: #cfc;"><img
    > style="margin: auto; display: block;" src="pic.png" width="900"
    > height="900" alt=""></div>
    >
    > Gets you scrollbars on the div when needed. But to see the bottom
    > ones, you have to scroll the browser normally to get to the
    > bottom of the picture (and not, as on the planet I came from,
    > floating above your computer <g>).


    Actually, the trick is in having a second division, or element, embedded
    within where you want the scroll to appear.

    <div id="outer" style="width:100px; height:100px; overflow-x:auto;
    overflow-y:hidden;">
    <div id="inner" style="width:500px;">
    This are a test
    </div></div>

    Now the horizontal scrollbar appears as it should. At least it works for me
    just fine this way.

    Now if I could just figure out how to make myself float above your.......uh
    well, my location, then that would be a real trick.
     
    richard, Jan 23, 2011
    #8
  9. On 23/01/11 22:30, richard wrote:
    > On Sun, 23 Jan 2011 20:58:35 +0000, Denis McMahon wrote:
    >
    >> On 23/01/11 19:25, richard wrote:
    >>> Used to be fairly simple. If you wanted scrollbars as needed, just add
    >>> overflow:auto to the css.
    >>> Now when I do that, all I get is the vertical scrollbar.
    >>> Even with overflow:scroll, I get the vertical, and the horizontal shows the
    >>> place holder thing, but no scrollbar.
    >>> I've tried some tricks in trying to get the horizontal scroll but doesn't
    >>> seem to work for me. While it works just fine when using scripts from
    >>> outside sources. I just can't figure it out.

    >>
    >> Let me check, you want to force horizontal scrolling?


    > Precisely. Yes I know the consensus is, among those certain few, that
    > horizontal scrollbares are the nastiest plague, but there are times when it
    > becomes necessary.
    >
    > In my particular case, I need it to keep the data in the place where I
    > intend it to be. Not break apart and make it look it sloppy.


    Then you're trying to cram too much data onto a page.

    Find a better way to visually present your data.

    Rgds

    Denis McMahon
     
    Denis McMahon, Jan 23, 2011
    #9
  10. richard

    dorayme Guest

    In article <>,
    richard <> wrote:

    > On Mon, 24 Jan 2011 09:43:46 +1100, dorayme wrote:
    >
    > > In article <>,
    > > richard <> wrote:
    > >
    > >> Used to be fairly simple. If you wanted scrollbars as needed, just add
    > >> overflow:auto to the css.
    > >> Now when I do that, all I get is the vertical scrollbar.

    ....

    > > <div style="width: 450px; overflow: auto; background: #cfc;"><img
    > > style="margin: auto; display: block;" src="pic.png" width="900"
    > > height="900" alt=""></div>
    > >
    > > Gets you scrollbars on the div when needed. But to see the bottom
    > > ones, you have to scroll the browser normally to get to the
    > > bottom of the picture (and not, as on the planet I came from,
    > > floating above your computer <g>).

    >
    > Actually, the trick is in having a second division, or element, embedded
    > within where you want the scroll to appear.
    >
    > <div id="outer" style="width:100px; height:100px; overflow-x:auto;
    > overflow-y:hidden;">
    > <div id="inner" style="width:500px;">
    > This are a test
    > </div></div>
    >
    > Now the horizontal scrollbar appears as it should. At least it works for me
    > just fine this way.
    >


    Well, if you just have my above with some of your values:

    <div style="width: 100px; height:100px; overflow: auto;
    background: #cfc;"><p style="width:500px;">This is a
    test</p></div>

    seems to be simpler. But, don't know what you are doing and I
    would never ever ask a truck driver or an ex truck driver for a
    URL. Last time I did that, he pulled an iron bar out from under
    his seat... <g>

    --
    dorayme
     
    dorayme, Jan 23, 2011
    #10
  11. richard

    richard Guest

    On Sun, 23 Jan 2011 22:53:57 -0500, Ed Mullen wrote:

    > Denis McMahon wrote:
    >> On 23/01/11 22:30, richard wrote:
    >>> On Sun, 23 Jan 2011 20:58:35 +0000, Denis McMahon wrote:
    >>>
    >>>> On 23/01/11 19:25, richard wrote:
    >>>>> Used to be fairly simple. If you wanted scrollbars as needed, just add
    >>>>> overflow:auto to the css.
    >>>>> Now when I do that, all I get is the vertical scrollbar.
    >>>>> Even with overflow:scroll, I get the vertical, and the horizontal shows the
    >>>>> place holder thing, but no scrollbar.
    >>>>> I've tried some tricks in trying to get the horizontal scroll but doesn't
    >>>>> seem to work for me. While it works just fine when using scripts from
    >>>>> outside sources. I just can't figure it out.
    >>>>
    >>>> Let me check, you want to force horizontal scrolling?

    >>
    >>> Precisely. Yes I know the consensus is, among those certain few, that
    >>> horizontal scrollbares are the nastiest plague, but there are times when it
    >>> becomes necessary.
    >>>
    >>> In my particular case, I need it to keep the data in the place where I
    >>> intend it to be. Not break apart and make it look it sloppy.

    >>
    >> Then you're trying to cram too much data onto a page.
    >>
    >> Find a better way to visually present your data.

    >
    > Or let the user download an Excel or whatever file and view it in the
    > native application.
    >
    > You can't have any idea of your user's screent size. Stop wanting that.
    >
    > Besides, if you design a page propoerly, my standards-compliant browser
    > will give me a scroll bar to view it.
    >
    > Are you trying to invent a square wheel?


    Exactly. Just like the whiners who cry about using tables for display
    purposes.
    So what happens when a user visits your site designed for modern browsers
    and screen resolutitons with a window size of 800x600 and your site is
    2000x3000?
    Oh we're sorry, you can't see that other part because whiners insist on no
    horizontal scroll.
     
    richard, Jan 24, 2011
    #11
  12. Gazing into my crystal ball I observed richard <>
    writing in news:qtmbf9exrfdb$:

    > Exactly. Just like the whiners who cry about using tables for display
    > purposes.
    > So what happens when a user visits your site designed for modern
    > browsers and screen resolutitons with a window size of 800x600 and
    > your site is 2000x3000?
    > Oh we're sorry, you can't see that other part because whiners insist
    > on no horizontal scroll.
    >


    No, a website should shrink/expand to fit. Say you go to a supermarket
    where there is only one flavor of jelly, and you ask the manager if they
    are going to get any more, and he says "No, this store will only sell
    that flavor because that is the one I like.". Would you go back to that
    store, or would you go across the street to another store and get another
    kind of jelly?

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
     
    Adrienne Boswell, Jan 24, 2011
    #12
  13. richard

    richard Guest

    On Mon, 24 Jan 2011 05:29:11 +0000 (UTC), Adrienne Boswell wrote:

    > Gazing into my crystal ball I observed richard <>
    > writing in news:qtmbf9exrfdb$:
    >
    >> Exactly. Just like the whiners who cry about using tables for display
    >> purposes.
    >> So what happens when a user visits your site designed for modern
    >> browsers and screen resolutitons with a window size of 800x600 and
    >> your site is 2000x3000?
    >> Oh we're sorry, you can't see that other part because whiners insist
    >> on no horizontal scroll.
    >>

    >
    > No, a website should shrink/expand to fit. Say you go to a supermarket
    > where there is only one flavor of jelly, and you ask the manager if they
    > are going to get any more, and he says "No, this store will only sell
    > that flavor because that is the one I like.". Would you go back to that
    > store, or would you go across the street to another store and get another
    > kind of jelly?


    Yeah right.
    Nobody should need to write code that fits each and every possible
    condition. Is it "*MY*" fault your web browser can't handle the code?
    I'm sure as hell not gonna write code to fit that iphone screen.
    The code was written for possible scenarios that could arise in the course
    of designing. If horizontal scrollbars were not included, then we'd all be
    forced to live without them.
     
    richard, Jan 24, 2011
    #13
  14. On 24/01/11 04:37, richard wrote:

    > So what happens when a user visits your site designed for modern browsers
    > and screen resolutitons with a window size of 800x600 and your site is
    > 2000x3000?
    > Oh we're sorry, you can't see that other part because whiners insist on no
    > horizontal scroll.


    Simple - Don't try and define the size of the users browser, and instead
    try and sensibly accommodate any browser width.

    Users will not want to scroll in two dimensions to view your web page.

    If your web page needs a width of 2k pixels to display, you're trying to
    put too much on it. Break your data down into smaller chunks.

    Rgds

    Denis McMahon
     
    Denis McMahon, Jan 24, 2011
    #14
  15. On 24/01/11 06:11, richard wrote:

    >> No, a website should shrink/expand to fit. Say you go to a supermarket
    >> where there is only one flavor of jelly, and you ask the manager if they
    >> are going to get any more, and he says "No, this store will only sell
    >> that flavor because that is the one I like.". Would you go back to that
    >> store, or would you go across the street to another store and get another
    >> kind of jelly?

    >
    > Yeah right.


    Yes, right.

    > Nobody should need to write code that fits each and every possible
    > condition. Is it "*MY*" fault your web browser can't handle the code?


    Actually, if you're writing the code, then yes it is.

    > I'm sure as hell not gonna write code to fit that iphone screen.
    > The code was written for possible scenarios that could arise in the course
    > of designing. If horizontal scrollbars were not included, then we'd all be
    > forced to live without them.


    Just because they're there doesn't mean that you have to use them. Like
    <blink>blinking text</blink>.

    I've tried to ignore the richard knocking in here and other places, but
    I'm rapidly coming to the conclusion that most of it is well founded.

    I don't know why you bother asking for help and advice on writing html
    because you invariably want to do something that historically others
    have learned is not good practice, your response is invariably to attack
    anyone who suggests that what you want to do might not be the best way
    to do it, and you absolutely refuse to contemplate that the advice that
    you explore different ways of doing things might be well founded and
    intentioned.

    You're just wasting your time and ours, and the world would be a better
    place if you just deleted your usenet client.

    Rgds

    Denis McMahon
     
    Denis McMahon, Jan 24, 2011
    #15
  16. richard wrote:

    > Nobody should need to write code that fits each and every possible
    > condition. Is it "*MY*" fault your web browser can't handle the code?


    You complain that you have a problem with html and that you do not know
    the answer.

    Knowledgeable answers are offered.

    You then rail that all answers are wrong.

    It is obvious that html is beyond your comprehension. You do not really
    seek understanding, more likely only attention. It is tedious, please go
    away.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Jan 24, 2011
    #16
  17. richard

    Lewis Guest

    In message <1lxtg64lqsktj$>
    richard <> wrote:
    > On Mon, 24 Jan 2011 05:29:11 +0000 (UTC), Adrienne Boswell wrote:


    >> Gazing into my crystal ball I observed richard <>
    >> writing in news:qtmbf9exrfdb$:
    >>
    >>> Exactly. Just like the whiners who cry about using tables for display
    >>> purposes.
    >>> So what happens when a user visits your site designed for modern
    >>> browsers and screen resolutitons with a window size of 800x600 and
    >>> your site is 2000x3000?
    >>> Oh we're sorry, you can't see that other part because whiners insist
    >>> on no horizontal scroll.
    >>>

    >>
    >> No, a website should shrink/expand to fit. Say you go to a supermarket
    >> where there is only one flavor of jelly, and you ask the manager if they
    >> are going to get any more, and he says "No, this store will only sell
    >> that flavor because that is the one I like.". Would you go back to that
    >> store, or would you go across the street to another store and get another
    >> kind of jelly?


    > Yeah right.
    > Nobody should need to write code that fits each and every possible
    > condition. Is it "*MY*" fault your web browser can't handle the code?
    > I'm sure as hell not gonna write code to fit that iphone screen.


    Write proper code and you needn't worry about the size of the screen.


    --
    'Winners never talk about glorious victories. That's because they're the
    ones who see what the battlefield looks like afterwards. It's only the
    losers who have glorious victories.' --Small Gods
     
    Lewis, Jan 24, 2011
    #17
  18. richard

    richard Guest

    On Mon, 24 Jan 2011 09:08:34 +0000, Denis McMahon wrote:

    > On 24/01/11 04:37, richard wrote:
    >
    >> So what happens when a user visits your site designed for modern browsers
    >> and screen resolutitons with a window size of 800x600 and your site is
    >> 2000x3000?
    >> Oh we're sorry, you can't see that other part because whiners insist on no
    >> horizontal scroll.

    >
    > Simple - Don't try and define the size of the users browser, and instead
    > try and sensibly accommodate any browser width.
    >
    > Users will not want to scroll in two dimensions to view your web page.
    >
    > If your web page needs a width of 2k pixels to display, you're trying to
    > put too much on it. Break your data down into smaller chunks.
    >
    > Rgds
    >
    > Denis McMahon


    My need is only to scroll only certain items that would not otherwise fit
    within the defined borders. Which will probably happen less than a tenth of
    the time. Then, that isn't all that much.
     
    richard, Jan 24, 2011
    #18
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Stockwell
    Replies:
    2
    Views:
    713
    Anna Martelli Ravenscroft
    Sep 20, 2004
  2. Gerrit
    Replies:
    0
    Views:
    402
    Gerrit
    Sep 20, 2004
  3. Terry Reedy
    Replies:
    0
    Views:
    440
    Terry Reedy
    Sep 20, 2004
  4. Replies:
    5
    Views:
    488
    Bo Yang
    Nov 2, 2006
  5. kirke

    list of days between two days

    kirke, Oct 19, 2006, in forum: Javascript
    Replies:
    7
    Views:
    147
    Julian Turner
    Oct 20, 2006
Loading...

Share This Page