Forum Moderators: open

Message Too Old, No Replies

Smartphones XHTML and aternate Stylesheets

         

urbanmac

2:01 pm on Nov 19, 2004 (gmt 0)

10+ Year Member




I'm developing a page in XHML and CSS, its looking good. I've added to alternate stylesheets for making the text larger. When viewing it on my Sony Ericsson K700 phone the stylesheet is being pulled in which makes the page to wide to use on its tiny screen, I'm guessing its one of the alternate Stylesheets as the main stylwhsheet uses @import, how do I stop the phone seeing the two alternate stylesheets?

<style type="text/css" media="all"><!--@import url("whs.css");--></style>
<link rel="alternate stylesheet" type="text/css" media="all" title="medium" href="whm.css" />
<link rel="alternate stylesheet" type="text/css" media="all" title="large" href="whl.css" />

urbanmac

2:10 pm on Nov 19, 2004 (gmt 0)

10+ Year Member




Doh! just worked out why, media must be screen and not all

media="screen"

encyclo

2:12 pm on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you also tried using a stylesheet with the media type
handheld
? I don't know if the particular phone you have supports it, though.