• Resolved ibogo

    (@ibogo)


    We want to add a scrollbar to these tabs: EXAMPLE

    As you see now under “Food” and “Services”, it will prevent having to scroll down on the page itself.

    Anyone?

Viewing 11 replies - 1 through 11 (of 11 total)
  • rdellconsulting

    (@rdellconsulting)

    Try this:

    .tabs-shortcode .ui-tabs-panel {
        max-height: 140px; /* Adjust */
        overflow-x: hidden;
        overflow-y: scroll;
    }
    Thread Starter ibogo

    (@ibogo)

    Works like a charm πŸ™‚

    Thread Starter ibogo

    (@ibogo)

    Oops there is an issue.

    It is not responsive on mobile.

    It cuts off at bottom without a scroll.

    rdellconsulting

    (@rdellconsulting)

    You’ll need to add some @media such as:

    @media screen
      and (min-device-width: 320px)
      and (max-device-height: 640px)  {
    
    .tabs-shortcode .ui-tabs-panel {
        max-height: 80px; /* Adjust */
        overflow-x: hidden;
        overflow-y: scroll;
    }
    
    }
    Thread Starter ibogo

    (@ibogo)

    The above code is not working.

    rdellconsulting

    (@rdellconsulting)

    @media screen
      and (min-device-width: 320px)
      and (max-device-width: 640px)  {
    
    .tabs-shortcode .ui-tabs-panel {
        max-height: 80px; /* Adjust */
        overflow-x: hidden;
        overflow-y: scroll;
    }
    
    }

    Sorry, been experimenting with some new code. try above.

    Thread Starter ibogo

    (@ibogo)

    Still not showing scrollbar, but read below.

    Scrollbar is only important on desktop.

    We need to make this desktop only:

    .tabs-shortcode .ui-tabs-panel {
        max-height: 280px; /* Adjust */
        overflow-x: hidden;
        overflow-y: scroll;
    }
    rdellconsulting

    (@rdellconsulting)

    Good lateral thinking!

    @media all and (min-width:980px) {
    .tabs-shortcode .ui-tabs-panel {
        max-height: 280px; /* Adjust */
        overflow-x: hidden;
        overflow-y: scroll;
    } }
    Thread Starter ibogo

    (@ibogo)

    Works great.

    Thank you again πŸ™‚

    Hi Everyone,

    I’m new here! πŸ™‚

    I’ve been trying to figure out how to put a scrollbar into a tab so that the text won’t cover the complete page. Thankfully I found this post, but as I have absolutely not a lot of basic knowledge ”yet” about css etc. I can not figure out by myself where I copy and paste the code as written above.

    I hope someone can bring up a little bit of patience to perhaps explain this to me in a short but powerful step by step so that I can put it onto my page and learn πŸ™‚

    Thank you in advance!

    I’m just working on the layout of my pages so I haven’t copied any of the text on my pages yet.. if interested in having a look it’s http://vestapac.com/our-products/

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Add scrollbar to tabs’ is closed to new replies.