iPad Orientation CSS
Cloud Four shows how it’s possible to change your CSS on the iPad based on orientation using media query declarations:
<link rel="stylesheet" media="all and (orientation:portrait)" href="portrait.css">
<link rel="stylesheet" media="all and (orientation:landscape)" href="landscape.css">
Share this!
-
techmodo liked this
-
scrufus liked this
-
bell liked this
-
fauzty liked this
-
zhusee2 liked this
-
andytlr reblogged this from webkitbits and added:
Won’t know if this is really useful or not until I get my hands on one. But...interesting...
-
peebee liked this
-
jaguarforce liked this
-
200 liked this
-
robinbos liked this
-
jkohl liked this
-
boton liked this
-
aaronbauer liked this
-
fuckyeahsimon liked this
-
ran-dom reblogged this from webkitbits
-
sshhh liked this
-
ethertank reblogged this from webkitbits
-
darthapo liked this
-
bencochran liked this
-
innerfusion liked this
-
dowding liked this
-
dp16 liked this
-
drazin liked this
-
chokladkakan liked this
-
jayrobinson liked this
-
voiddd liked this
-
jefflyall94 liked this
-
meinwelt liked this
-
azspot liked this
-
petervidani liked this
-
dannahan liked this
-
26blog reblogged this from webkitbits
-
mattschwarz liked this
-
nickchapman liked this
-
johnzanussi liked this
-
anthonyherron liked this
-
typographile reblogged this from webkitbits
-
strake liked this
-
dydric reblogged this from webkitbits
-
taralikesnonsense liked this
-
theopie liked this
-
gleuch liked this
-
waxandmilk liked this
-
paulstraw liked this
-
helloszabi reblogged this from esquareda
-
ridingwithstrangers liked this
-
zonble reblogged this from webkitbits and added:
的方向是直或是橫,給不同的 CSS 樣式。
-
tingletech reblogged this from webkitbits and added:
What happens if you have a square screen?
-
sethrubenstein reblogged this from webkitbits
-
hisuix liked this
- Show more notes



