Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2006

    load .CSS for mobile browsers?

    I'm trying to load a .CSS stylesheet for "handheld" with ASP/.NET.

    using the "handheld" media type doesn't seem to work, since some browsers load both "screen" and "handheld" .css files....

    is there any way to do this with ASP?

    something like:

    if browser="windows CE" then 
      <link rel="stylesheet" type="text/css" href="style-mobile.css">
      <link rel="stylesheet" type="text/css" href="style-pc.css">
    I don't know any ASP, hopefully someone can help me :P

  2. #2
    Registered User
    Join Date
    Jul 2006

    Re: load .CSS for mobile browsers?

    Basically, you have to override the styles that are set forth in the "screen" stylesheets in any ensuing "handheld" stylesheets.

    For example, one handy thing to do in the handheld stylesheet is:

    body * { float: none; }
    that way you can avoid some ugly horizontal scrolling.

Similar Threads

  1. Load File Problem(Urgent!)
    By zhenLeow in forum Symbian
    Replies: 6
    Last Post: 2005-11-22, 16:08
  2. Replies: 0
    Last Post: 2005-10-21, 11:50
  3. How to load a specific frame in a animated gif ?
    By ronin101 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-05-24, 03:51
  4. Load and play audio file
    By itenel in forum Symbian
    Replies: 4
    Last Post: 2004-05-17, 07:20
  5. embed color gif file in wml page cannot load
    By hsinyee in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2003-05-30, 03:35

Posting Permissions

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