English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a Web site that I want to be able to be used by people who go on the Internet on their phones or PDAs. My site looks fine on both when the CSS style sheets are turned off, but not so great when they are on. Any code that I can put in site to make them automatically turn off for mobile devices?

2007-03-24 03:57:52 · 4 answers · asked by HamOnRye 2 in Computers & Internet Programming & Design

4 answers

You can create separate style sheets for PCs and handhelds by adding a "media" specification to the statement that loads the stylesheet.

For example, . Use media ="screen" for PCs.

2007-03-24 05:24:29 · answer #1 · answered by injanier 7 · 0 0

Each persons PDA or cell phone will do the "turning off" off CSS. Thats why putting all decoration and formating in CSS is good for doing that. You can even replace CSS or use your own CSS on websites with your PC broswer. This is basically that PDAs etc do.

2007-03-24 04:02:38 · answer #2 · answered by Mr Ale 4 · 0 1

Download Opera as your browser. It has options to remove style sheets and I believe they have a version for phone or PDA.

2007-03-24 06:49:27 · answer #3 · answered by Anonymous · 0 0

Set the media type for your main stylesheet to "screen" so only normal web browsers will use it. Phones will look for "handheld" stylesheets, so you can even make a separate stylesheet to use there.

2007-03-24 05:21:00 · answer #4 · answered by undercoloteal 3 · 0 1

fedest.com, questions and answers