Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2009
    Location
    Norway
    Posts
    31
    Plugin Contributions
    0

    Default Separate scroll bar for categories.

    Hello,

    I have searched the forum, but couldn't find the answer anywhere. I would like to have a scroll bar inside the centercolumn for categories with multiple listings. So that the user can scroll down to view the products but the header would always be on top and the sidebar wouldn't move.

    Here's the link the page as it is now: http://shopforhealthandbeauty.co.uk/ - So I want the navigation bar on the right hand side between the centercolumn content and the side bar. Is it possible?

    Thank you,
    Elvira.

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Separate scroll bar for categories.

    could try adding this to your stylesheet

    div#indexProductList {
    height:600px;
    overflow:scroll;
    }

  3. #3
    Join Date
    Feb 2009
    Location
    Norway
    Posts
    31
    Plugin Contributions
    0

    Default Re: Separate scroll bar for categories.

    It worked! Thank you very much!
    Is it possible to get rid of the bottom scroll? Here's how it looks now: http://shopforhealthandbeauty.co.uk/

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Separate scroll bar for categories.

    change:
    overflow:scroll;


    to:
    overflow-x:hidden;
    overflow-y:scroll;

  5. #5
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Separate scroll bar for categories.

    By doing that you've made your site not work on mobile phones, as scroll bars don't work on a touch screen. Currently on my Android phone you can only see the first three products.

  6. #6
    Join Date
    Feb 2009
    Location
    Norway
    Posts
    31
    Plugin Contributions
    0

    Default Re: Separate scroll bar for categories.

    Quote Originally Posted by dgent View Post
    By doing that you've made your site not work on mobile phones, as scroll bars don't work on a touch screen. Currently on my Android phone you can only see the first three products.
    Oh, thank you for letting me know. Hmmm, I have to rethink this then.

  7. #7
    Join Date
    Feb 2009
    Location
    Norway
    Posts
    31
    Plugin Contributions
    0

    Default Re: Separate scroll bar for categories.

    Is there any code that would exclude scroll bar for mobile browsing?
    Something like: if PC - use scroll bar, if mobile - don't use scroll bar.

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Separate scroll bar for categories.

    Separate stylesheets, perhaps, configured to apply to different devices.

    You may also want to look at the VIEWPORT TAG. (Search Google).
    20 years a Zencart User

  9. #9
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Separate scroll bar for categories.

    Quote Originally Posted by Elvira View Post
    Is there any code that would exclude scroll bar for mobile browsing?
    Something like: if PC - use scroll bar, if mobile - don't use scroll bar.
    Its not worth the risk, as many people run a desktop user agent on their phones so would bring up the scroll bar version.

 

 

Similar Threads

  1. Horizontal Scroll Bar for New Products
    By anap in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 May 2009, 08:10 AM
  2. Scroll bar for larger images
    By libind in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jul 2007, 02:32 AM
  3. Scroll bar for large images?
    By BillNally in forum General Questions
    Replies: 5
    Last Post: 27 Jul 2006, 01:31 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