1

I am looking for a tutorial which will guide me to style HTML pages using CSS so that they can be viewed on an android phone. The CSS should be such that it should incorporate all types of devices in terms of size and display functionality.

1
  • 1
    Extended my answer with some info about cross-browser support, hopefully you'll find it useful. Commented Jul 5, 2012 at 14:05

2 Answers 2

1

For a web page to adapt to screen-resolution, you will have to look in to the concept of responsive design. Responsive web pages can be accomplished using CSS3 media-queries.

Here are a few resources on responsive design and CSS3 media-queries to get you started:

Responsive design:

Media-queries:

Cross-browser support:

Unfortunately older browsers does not support the necessary media-queries for responsive design. Therefor, if you need to support IE8 for instance, you will have to use a JavaScript to enable it for browsers the lack native support. Have a look at respond.js, which I've found very useful the times I've used it.

Sign up to request clarification or add additional context in comments.

Comments

0

You should look into CSS media queries.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.