I have an application that looks good on screens, but has a rigid structure that makes it difficult to use on mobile phones, etc. Therefore, I made a special CSS file for these devices. This is normal, I use main.css, which determines the general view (for all media) and the handheld.css file, which makes corrections for such devices:
<link rel="stylesheet" media="all" type="text/css" href="main.css" /> <link rel="stylesheet" media="handheld,tv" type="text/css" href="handheld.css" />
The problem is that some devices, such as the iPad, look great with the overall version of the screen and do not need to be downgraded, as on some mobile phones. So I installed a link in my application that sets a cookie that displays like on the desktop. The problem is that I do not know how to make handheld.css not load. Maybe Javascript? But how?
Ivan
source share