detect portrait landscape css

CSS
 @media screen and (orientation:portrait) { … }
 @media screen and (orientation:landscape) { … }
Source

Also in CSS: