The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> CSS for mobile browsers
Christian J
post Dec 2 2011, 07:46 PM
Post #1


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



Some mobile phone (smartphone) browsers only apply screen media CSS, while ignoring handheld media. Apparently this is because the vendors

"believed that handheld style sheets were less well-designed and maintained than their screen counterparts, and provided an inferior experience to the users."
http://www.alistapart.com/articles/return-...bile-stylesheet

So instead of media handheld, it's often recommended to use CSS3 media queries, like this:

CODE
media="only screen and (max-device-width:480px)"

But what about mobile phones with large resolutions, like 854 x 480px? If we increase the max-device-width to include these, it will start to overlap with the resolutions of some netbooks (and older desktop computers). Should we really give netbooks the same inferior CSS "experience" as mobile phones?

This post has been edited by Christian J: Dec 3 2011, 06:58 AM
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Frederiek
post Dec 3 2011, 06:27 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



What's wrong with using CSS media queries, instead of the media attribute of the LINK tag? Haven't you read the ALA article Responsive Web Design (which, btw, has caused a big hype on the web)? Nowadays, "mobile first" is advocated.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Christian J   CSS for mobile browsers   Dec 2 2011, 07:46 PM
pandy   Netbooks with 480 pixels wide screens? Naah, can...   Dec 2 2011, 08:35 PM
Darin McGrew   Netbooks with 480 pixels wide screens? Naah, can...   Dec 2 2011, 08:53 PM
Christian J   My question is what happens when I use a smartpho...   Dec 2 2011, 09:44 PM
Christian J   Netbooks with 480 pixels wide screens? No I was ...   Dec 2 2011, 09:29 PM
Darin McGrew   Yeah, unfortunately, the "must look the same ...   Dec 2 2011, 08:48 PM
Christian J   Yeah, unfortunately, the "must look the same...   Dec 2 2011, 09:35 PM
Christian J   If we increase the max-device-width to include th...   Dec 2 2011, 09:55 PM
Christian J   [quote name='Christian J' post='64022' date='Dec ...   Dec 4 2011, 11:06 AM
Frederiek   What's wrong with using CSS media queries, ins...   Dec 3 2011, 06:27 AM
Christian J   What's wrong with using CSS media queries, in...   Dec 3 2011, 06:57 AM
Frederiek   Come again? :unsure: Meaning, you design for m...   Dec 4 2011, 06:01 AM
Christian J   Come again? :unsure: Meaning, you design for ...   Dec 4 2011, 09:50 AM
Christian J   It seems true that smartphone sales have exploded...   Jan 15 2012, 08:59 PM
Darin McGrew   Nothing's wrong with them, except that major m...   Dec 3 2011, 10:34 AM
pandy   I didn't know the only difference was the one ...   Dec 3 2011, 11:12 AM
pandy   Hm. Now I think I did remember wrong. :unsure:   Dec 3 2011, 11:13 AM
Christian J   I didn't know the only difference was the one...   Dec 3 2011, 03:11 PM
Frederiek   I may remember wrong, but isn't it true that ...   Dec 4 2011, 06:04 AM
Christian J   Nothing's wrong with them, except that major ...   Dec 3 2011, 03:14 PM
Frederiek   That's true. But you'll have to have seve...   Dec 4 2011, 06:10 AM
Christian J   Possibly the META viewport element can help preven...   Dec 4 2011, 05:55 PM
Christian J   After quick-testing with <meta name="view...   Dec 4 2011, 09:19 PM
Frederiek   There are quite a few interesting articles on the ...   Dec 6 2011, 05:13 AM
Christian J   - CSS Media Queries and IE Fix - Serban Ghita (th...   Dec 6 2011, 10:43 PM
pandy   Didn't work in anything I tried and it was ugl...   Dec 6 2011, 10:52 PM
Christian J   Didn't work in anything I tried and it was ug...   Dec 7 2011, 08:22 AM
pandy   My point was that far from everyone uses the lates...   Dec 7 2011, 08:37 AM
Christian J   My point was that far from everyone uses the late...   Dec 7 2011, 09:20 AM
Frederiek   Like I said, I wasn't convinced by that demo. ...   Dec 7 2011, 11:53 AM
pandy   Yeah, that's what happened all the time for me...   Dec 7 2011, 02:26 PM
Christian J   I thought mobiles reformatted the layout themselv...   Dec 7 2011, 02:37 PM
Darin McGrew   The default Android browser shows the page as a th...   Dec 7 2011, 02:53 PM
pandy   The world is getting so complicated. :wacko:   Dec 7 2011, 03:10 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 07:04 PM