Reputation: 989
Is there a way to provide a user with a basic HTML webpage from the same link according to browser type? Specifically, when navigating to www.mysite.com via a desktop browser, the user sees one large web page, but navigating there from a mobile shows a smaller web page.
Upvotes: 0
Views: 78
Reputation: 3256
Bootstrap Responsive Design will help in what you'r trying to achieve.
So if you included the bootstrap library as part of your site, adding a class to your HTML tags will make it behave that way.
<body>
<div class="visible-desktop">
Content for big screen here
</div>
<div class="visible-phone">
Content for phones here
<div>
</body
Upvotes: 1
Reputation: 710
You can use style sheet to achieve this.
Screen will only display on the desktop, while handheld will only display on the mobile device.
http://mobile.smashingmagazine.com/2010/11/03/how-to-build-a-mobile-website/#mobile-stylesheets
Upvotes: 0