having a strange error -- When I start my tablet (using a Nexys 7 2013 model) in portrait it loads the correct stylesheet, and when I switch to landscape it loads that correct style sheet, but then when I switch back to portrait it doesn't load the portrait stylesheet anymore. What gives?
Relavant code:
<link rel="stylesheet" type="text/css"
media="only screen and (max-device-width: 800px) and (-webkit-min-device-pixel-ratio: 2.0) and (orientation: portrait)"
href="tablet_portrait.css">
<link rel="stylesheet" type="text/css"
media="only screen and (max-device-width: 800px) and (-webkit-min-device-pixel-ratio: 2.0) and (orientation: landscape)"
href="tablet_landscape.css">
Is there some kind of code I need to put in to determine what to load when going back from whatever orientation I switched to? I have not tested it on a phone layout, but I'm assuming it does the same thing.
Thanks!