×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Same XHTML document for phone and PC

    I want to give different CSS styles depending on the device used for browsing. The problem is that some Nokia phones - at least 3120 in my experience - process style sheets that target the 'screen' media type besides 'handheld'. How can I give different style for a proper 'screen' devise, such as desktop PC?

  2. #2
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Re: Same XHTML document for phone and PC

    I have one solution already:

    I put the following two lines to the XHTML file
    <link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
    <link rel="stylesheet" type="text/css" media="handheld" href="wap.css" />

    ..and override all of screen.css in wap.css. But it is still waste of bandwidth, if the "handheld" device reads also the screen.css.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Re: Same XHTML document for phone and PC

    There is more on this in USENET thread <Vn_Qf.328$OO4.261@read3.inet.fi>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×