Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #272502

    Hi there,

    I have a tabs element (4 tabs) within a 2/3 column. Everything is groovy until you resize the window. When it gets smaller (say a 768px screen for iPad), one of the tabs gets pushed to a new row since there’s not enough space for all 4 tabs to go side-by-side. How can I force the tabs to go into “mobile view” (so tabs are stacked vertically like accordions) on 768px @media queries?

    Any help would be appreciated.

    Thanks!

    #272621

    Hey!

    Try adding this code to the Quick CSS:

    @media only screen and (max-width: 1024px)  {
    	.responsive .tabcontainer{border-width: 1px; border-style: solid; border-top:none; overflow: hidden;}
    	.responsive .tabcontainer .tab_titles{display:none;}
    	.responsive .tabcontainer .tab_content, .responsive .tabcontainer .tab
    	{width:100%; max-width:100%; border-left:none; border-right:0;left:0; top:0; min-height: 0!important;}
    	.responsive .tabcontainer .tab_content{border-bottom:none; padding:15px 30px; clear: both; }
    	.responsive .tabcontainer .tab.fullsize-tab{ display:block; margin-bottom:-1px;}
    	.responsive .top_tab .tab.fullsize-tab{ margin-bottom:0px;}
    
    }

    Cheers! 
    Josue

    #272681

    Thank you Josue! Your CSS works fine.

    Cheers

    #272683

    You are welcome, glad we could help :)

    Regards,
    
Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Make Tabs display in mobile view on 768px’ is closed to new replies.