Click here to Skip to main content
15,895,142 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHELP: Strict JavaScript Syntax Checker Verifier Pin
dhruba.bandopadhyay10-May-07 23:43
dhruba.bandopadhyay10-May-07 23:43 
AnswerRe: HELP: Strict JavaScript Syntax Checker Verifier Pin
subrata.jana11-May-07 0:25
subrata.jana11-May-07 0:25 
QuestionChange style based on device type Pin
Mundo Cani10-May-07 21:48
Mundo Cani10-May-07 21:48 
AnswerRe: Change style based on device type Pin
subrata.jana11-May-07 0:28
subrata.jana11-May-07 0:28 
GeneralRe: Change style based on device type Pin
Mundo Cani11-May-07 6:31
Mundo Cani11-May-07 6:31 
AnswerRe: Change style based on device type Pin
Johnny ²11-May-07 9:49
Johnny ²11-May-07 9:49 
GeneralRe: Change style based on device type Pin
Mundo Cani11-May-07 22:47
Mundo Cani11-May-07 22:47 
AnswerRe: Change style based on device type Pin
JimmyRopes12-May-07 7:45
professionalJimmyRopes12-May-07 7:45 
ibowler wrote:
I want to apply a different stylesheet if the client is a mobile device.


Put something like this in the <head> section of the page.

<style type="text/css" media="all">
@import "./styles/layout.css";
@import "./styles/presentation.css";
</style>
<style type="text/css" media="screen">
@import "./styles/screen.css";
</style>
<style type="text/css" media="print">
@import "./styles/print.css";
</style>
<style type="text/css" media="handheld">
@import "./styles/handheld.css";
</style>

CSS 2 Media Types[^]

The media=all would be a general layout (header, body, footer, navigation, etc.) and presentation (color, background, etc.) for any media and the specialized by device style sheets override the things specific to the particular device.

Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems

I'm on-line therefore I am.
JimmyRopes


QuestionHyperlinkColumn! Pin
nclauder10-May-07 19:17
nclauder10-May-07 19:17 
AnswerRe: HyperlinkColumn! [modified] Pin
Panchal Hardik11-May-07 1:47
Panchal Hardik11-May-07 1:47 
QuestionTooltips Pin
Laing,James10-May-07 13:25
Laing,James10-May-07 13:25 
AnswerRe: Tooltips Pin
MatrixCoder10-May-07 16:09
MatrixCoder10-May-07 16:09 
GeneralRe: Tooltips Pin
Laing,James13-May-07 7:50
Laing,James13-May-07 7:50 
Questionjavascript for textbox that accept only numbers Pin
DineshSharmain10-May-07 1:35
DineshSharmain10-May-07 1:35 
AnswerRe: javascript for textbox that accept only numbers Pin
RichardGrimmer10-May-07 5:19
RichardGrimmer10-May-07 5:19 
GeneralRe: javascript for textbox that accept only numbers Pin
DineshSharmain10-May-07 19:05
DineshSharmain10-May-07 19:05 
GeneralRe: javascript for textbox that accept only numbers Pin
Christian Graus10-May-07 19:38
protectorChristian Graus10-May-07 19:38 
AnswerRe: javascript for textbox that accept only numbers Pin
krsasi11-May-07 1:29
krsasi11-May-07 1:29 
QuestionMIVA in ASP.Net VB Code Pin
hifiger20049-May-07 3:54
hifiger20049-May-07 3:54 
AnswerRe: MIVA in ASP.Net VB Code Pin
Christian Graus10-May-07 10:43
protectorChristian Graus10-May-07 10:43 
QuestionUsing JDBCDataGrid example and am trying to enable row selection Pin
tleyden@imagine.ie8-May-07 23:03
tleyden@imagine.ie8-May-07 23:03 
QuestionUser controls Pin
Ridge Howison8-May-07 11:33
Ridge Howison8-May-07 11:33 
AnswerRe: User controls Pin
Christian Graus8-May-07 18:17
protectorChristian Graus8-May-07 18:17 
QuestionUsing the SQLDataReader Pin
No-e8-May-07 6:01
No-e8-May-07 6:01 
AnswerRe: Using the SQLDataReader Pin
Fred_Smith8-May-07 7:31
Fred_Smith8-May-07 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.