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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    419
    Thanks
    18
    Thanked 2 Times in 2 Posts

    want div overflow, but not scrollbar

    I have an image that is about 1600 pixels long, tapering down to a point so that it disappears on anything screen larger than that.

    I thought I could put it in a div tag that was set to show overflow, and not have the horizontal scroll bar show.. The image is just that wide to account for different screen resolutions. Does any one know how I can accomplish this with my image and not have that scrollbar.

    thanks!
    Here's what I tried:
    Code:
    <div style="z-index:-1; height:0px; width:100%; overflow:visible; position:relative; top:67px;" ><img src="test_images/tear1.gif" /></div>

  • #2
    Regular Coder
    Join Date
    Aug 2010
    Posts
    419
    Thanks
    18
    Thanked 2 Times in 2 Posts
    hah! Of course I found an answer the moment after I posted. I just put a overflow: hidden; on the body.

    neeever mind!


  •  

    Posting Permissions

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