View Single Post
Old 09-24-2012, 05:42 PM   PM User | #6
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
Somehow your post on 9-21 never showed up for me.

Quote:
Originally Posted by Rcoleman25 View Post
so I could essentially have a mobile site and then build an app SIMILAR to the mobile site with a geolocation feature...
Yes, the code below targets a specific screen size and you would insert CSS targeting phones. You shouldn't have to change everything, just widths and heights. The color scheme and everything else stays the same, unless you want to create a completely different design for a mobile device (in which using a subdomain like mobile.website.com would be preferable).

Code:
@media screen and (min-width: 321px) and (max-width: 480px) {

}
Quote:
Originally Posted by Rcoleman25 View Post
I would like to have one of those auto detect scripts which introduces a scaled-down version of my website when customers log in from their mobile phones.
@media queries are auto-detection scripts. They are for CSS only for mobile sites.

Last edited by Sammy12; 09-24-2012 at 05:46 PM..
Sammy12 is offline   Reply With Quote