Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

handheld css does not work properly

on my site i have 3 css

<link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
 <link rel="stylesheet" type="text/css" media="print" href="print.css" />
 <link rel="stylesheet" type="text/css" media="handheld" href="handheld.css" />

i thought the media handheld will automatically load my site formated for devices

when i load my site with my android, i still see the "site.css" why it does not load the handheld.css?

like image 244
joel Avatar asked Dec 16 '11 14:12

joel


1 Answers

Apparently Android/iPhone/Nokia browsers don't think that they are handhelds.

You should use media queries to detect devices.

like image 165
Oleg Mikheev Avatar answered Oct 22 '22 08:10

Oleg Mikheev