Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Is it possible to disable the horizontal scroll bar via the style sheet?

    Hello,

    I would like to know if its it possible to disable the horizontal scroll bar via the style sheet?...

    If so how?

    If not, how do I??
    My site is set at a fluid width of 100%

    Thankyou

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Is it possible to disable the horizontal scroll bar via the style sheet?

    yes, it is the overflow property.

    http://www.w3schools.com/Css/pr_pos_overflow.asp

    overflow:visible;
    overflow:hidden;
    overflow:scroll;
    overflow:auto;
    overflow:inherit;


    are your options. Overflow:hidden means that the content that is outside the containing element is just not shown. They can be applied to any tag including the body tag.

    However if you have a genuinely fluid layout, then why are you seeing a scroll bar at all? There must be some element in there that isn't fluid which is causing the horizontal scroll bar to appear. Which is probably an image.

    A url for the page would help!

    Nik

  3. #3
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Is it possible to disable the horizontal scroll bar via the style sheet?

    Hi niccol,

    Thanks for the quick reply. Im afraid the site isnt live yet so I cant provide you with a URL, sorry.

    So would I literally just add 'overflow:hidden;' to the styleeheet then?

    Thankyou

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Is it possible to disable the horizontal scroll bar via the style sheet?

    You are getting a scroll bar because you have some padding or margins somewhere that is trying to make the page bigger than 100% - you should fix that rather than hiding the scroll bar, if you can. ( You can cheat by using 99.9% instead of 100% too)
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Is it possible to disable the horizontal scroll bar via the style sheet?

    Hi Kim...

    Yes I cheated!!, the 99.9% trick works fine for now, I intend on finding the culprit for the rogue scrollbar soon though!.

    Thanks for your help

 

 

Similar Threads

  1. Horizontal Scroll Bar Shows But Is Unnecessary
    By AdaLovelace in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Mar 2011, 11:51 PM
  2. Horizontal scroll bar linked to featured products
    By shadowd in forum General Questions
    Replies: 0
    Last Post: 17 Jan 2010, 02:47 PM
  3. Horizontal Scroll Bar on Product Listings
    By limelites in forum General Questions
    Replies: 15
    Last Post: 6 Oct 2009, 04:49 AM
  4. Horizontal Scroll Bar for New Products
    By anap in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 May 2009, 08:10 AM
  5. Where Is The Style Sheet?
    By agzt in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Jan 2008, 11:32 PM

Posting Permissions

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