- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHPPhysics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Retrofit existing web page with mobile CSS
To retrofit, use the CSS media queries, and allow different stylesheets to different browser capabilities. A benefit is that you do not have to go for any server-side code.
This would require you to add specific detection code to the script for grouping of the device.
The media queries handle even devices you've never heard of.
Set the following:
@media handheld and (max-width: 480px), screen and (max-device-width: 480px), screen and (max-width: 600px) {
body {
color: blue;
}
}Advertisements