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 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2004
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Overflow Woes - Help!

    ive just spent hours trying to get a <DIV> to overflow properly and now im at my wit's end! please help me!

    i have placed a datagrid inside a <DIV>. my aim is for the grid to have a horizontal scrollbar underneath it if the contents would otherwise overflow.

    at the moment in firefox the <DIV> shows BOTH horizontal and vertical scrollbars. i only need horizontal.

    in IE 7 there's no scrollbars! so when the datagrid contains a lot of data the grid overflows causing the page to have a horizontal scrollbar, not the <DIV> like i wanted.

    <div style="overflow:auto;">

    thats what im trying so far. i also tried setting margin to -1 and width to 100% no joy.

    help!

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Goodmorning Wee Bubba,
    I'm hung over this am and I can't seem to mind read as well as usual. We're really going to need to see your code to figure this out - CSS, HTML and the size of the datagrid your trying to put in the div would be nice.
    A link would be better.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im having a very similiar problem with this at http://worktips.co.uk/thisover.html

    So close yet so far. What I dont understand is where scrollbars come into it, Im just looking add a border around 1 header and 3 columns???


  •  

    Posting Permissions

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