USERNAME PASSWORD LOST PASSWORD? REGISTER
"A Complete Mobile Application Development Environment"
Advertisement

Downloads
Documentation
Forums
Blog
Press
Bug Tracking
Creator IDs
Contact Us




ACCESS Developer Network
Welcome, Guest
Please Login or Register.
Lost Password?
How to switch CSS according to the display width (1 viewing)
_GEN_GOTOBOTTOM Post Reply Favoured: 0
TOPIC: How to switch CSS according to the display width
#683
xavxav (User)
Senior Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
How to switch CSS according to the display width 2008/09/10 12:48 Karma: 0  
Hello,

I work on a Web site optimization for the Netfront 3.5 browser running on Window Mobile plateform.

Actually, I try to use the command max-device-width and min-device-width which allows to select a stylesheet according to the device display mode (width = 240 or width = 320).
With other mobile web browsers, I use this command according to the W3C recommendation :
http://www.w3.org/TR/css3-mediaqueries/


I noticed that it is not supported by this browser. Are there any alternative ?
I think that it is possible to select a new stylesheet dynamically. But there are other problems to fix :
1) Is there a Javascript event which is triggered when the user change the screen from portrait to landscape or the contrary ?
2) How to get the screen width with Javascript.

I would like also to know if the meta tag name = "viewport" is available on Netfront.

Any answer would be appreciated.

Best regards,

Xavier
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
Powered by FireBoardget the latest posts directly to your desktop


© 2008 ACCESS Developer Network    |    Joomla! is Free Software released under the GNU/GPL License.    |    ACCESS Global Website
Events Support Community Platforms Home