SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2004
    Location
    Italy,turin
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to avoid scrollbars in div in firefox

    I was testing a 3 column layout and in firefox the content div gets the scrollbars
    no matter what I do.even if I leave only the content div which gets 100% of the width firefox puts me those scrollbars.
    Any ideas ?
    Thanks

  2. #2
    SitePoint Guru
    Join Date
    Jun 2004
    Location
    Finland
    Posts
    703
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I have to admit that I did not completely understand the problem, but I believe that overflow is what you're looking for.

    overflow: visible|hidden|scroll|auto

    http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    I'm not sure of the question either but if you are getting scrollbars then the answer is simple - the element is too big.

    Either you have added padding or borders to a 100% element or you have made an error somewhere else.

    An example of your code would soon solve the problem though

    Paul


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
  •