Jump to content
Sign in to follow this  
Orionsbelter

Bootstrap Tabs on Desktop and Accordion on Mobile - how is this done?

Recommended Posts

Hi, 

I'm currently stuck as two how I can do this, I have a desktop and mobile design where on Desktop the design acts like tabs but on mobile it acts as an Accordion. But i'm not too sure how the best way to go about this is. 

Please see attached the designs. 

Any examples or advice on how to do this would be greatly appreciated. 

post-63028-0-39358500-1469104957_thumb.jpg

post-63028-0-27904100-1469104964_thumb.jpg

Share this post


Link to post
Share on other sites

That is bootstraps default behavior. You don't need two different designs. Bootstrap is mobile-friendly,actually mobile first is the term and will scale automatically.

Edited by benanamen

Share this post


Link to post
Share on other sites

That is bootstraps default behavior. You don't need two different designs. Bootstrap is mobile-friendly,actually mobile first is the term and will scale automatically.

If you were to use tabs, they wouldn't stack on mobile nor would they act like an accordion. 

Share this post


Link to post
Share on other sites

Tabs are tabs. From Mobile on up tabs will still act like tabs. If you want an accordion use the accordion. If you want the tabs to magically become an accordion, bootstrap doesn't do that. You would probably have to use some JavaScript to hide the tabs and replace it with an accordion. If you know of a site that behaves the way you want post it here and I may be able to help you figure out how it's done.

Edited by benanamen

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.