Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    vancouver, canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    elements off screen without a scroll bar?

    is it possible to position an element off the screen without causing a scroll bar to appear?

    thanks.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    you can hide the scrollbars

    <body style="overflow:hidden">

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Location
    vancouver, canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    right, but it's just this content i'd like to behave like this. the rest should be normal.

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    you can hide stuff with its visibility

    style="visibility:hidden"


    What r u trying to do??? then we could help you out a little beter

  • #5
    New to the CF scene
    Join Date
    Jul 2002
    Location
    vancouver, canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it's a scroller. i'm moving a div object across the screen while inversely moving its clip coordinates. makes it look like it's scrolling.

    unfortunately, the browser thinks the page is as wide as div, not just the clipped portion, so scroll bars appear even though they're not necessary.

  • #6
    New to the CF scene
    Join Date
    Jul 2002
    Location
    vancouver, canada
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hooray!

    wrapping everything up in another div element with overflow:hidden did the trick, although made things a little hairier in netscape.

  • #7
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    lol....
    Netscape is what makes coding fun......



    A1ien51

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Because it doesn't correct your bad code like IE does?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •