Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Bootstrap 3 - desktop view on a mobile device

Is it possible to show a bootstrap website as the desktop version, when on a mobile device?

Basically I want the user to be able to select whether a page would show the 992px or 1200px viewports instead of the small devices one.

For example, the BBC lets you switch between the mobile and desktop site using a link at the bottom of the page, which is what I would like to do.

Thanks, Liam

5 Answers

Just in case anyone was interested, I came across this JS plugin that did the trick - http://responsiveviewport.com/

As well as a site offering an ability to switch between mobile / desktop view, i believe alot of Modern mobile browsers offer the capability to request either from the website.

Do you know how this could be done?

I've never actually done this myself. I would imagine that offering something that disables the specific mobile styling would work. I would look into JavaScript to do this.

Ah ok, thanks for you help.