SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS trick for removing IE scrollbar area

    This is a long shot ...

    In IE, in a frameset ...
    Frame is set such that scrolling="auto"
    IE automatically reserves space for a scrollbar, if it's required

    Does anyone know of any CSS trick that can be used to take up that scrollbar space? In other words not to reserve that space, instead to 'steal it back' only when required?

    I don't know if this is remotely possible, but a bit of CSS trickery might be able to do this ...

    Anyway, any suggestions appreciated.
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #frameid {
      overflow: auto;
    }
    should work for you (no promises--in a rush :-p)! Unfortunately, Opera 5- interprets it like "overflow: hidden;" which might cause problems getting to the run off stuff for Opera-goers.

    Work for ya'? :-)

    ~~Ian

  3. #3
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here's for a normal page:

    Code:
    body {
     overflow:auto;
    }
    just tested it.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


Bookmarks

Posting Permissions

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