0

I assume it involves the view-port somehow, but I'm not good at mobile. I'd like to re-size my font and move my elements around.

I see that HTML 5 Boilerplate comes in a mobile form, how and when would I switch to that?

Drazisil
  • 3,070
  • 4
  • 33
  • 53
  • I decided my question was not well thought out and decided to switch to the mobile BP for everything was css media queries. Thanks for the help. :) – Drazisil Apr 08 '13 at 18:21

2 Answers2

1

It depends on what you need to change.

To change Boilerplate to Boilerplate Mobile you could have a server-side condition and render a completely different page. If you are using some kind of dynamic framework or have direct access to the server you can check for User-Agent

Here is an article that explains how to use mobile-specific JS, CSS and HTML. Hope it helps.

Dave Powers
  • 2,051
  • 2
  • 30
  • 34
Nicolas
  • 2,297
  • 3
  • 28
  • 40
1

You may parse the user agent to determine the mobile platform (e.g., iPhone, iPad, iPod, Android, Opera, Android, BlackBerry, hpwOS, Windows PhoneOS, etc.).

And it is better to use a @media query in CSS to take advantage of the screen dimensions.

For reference:

Dave Powers
  • 2,051
  • 2
  • 30
  • 34
pinxue
  • 1,736
  • 12
  • 17