Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- /* default styles here for older browsers.
- I tend to go for a 600px - 960px width max but using percentages
- */
- @media only screen and (min-width: 960px) {
- /* styles for browsers larger than 960px; */
- }
- @media only screen and (min-width: 1440px) {
- /* styles for browsers larger than 1440px; */
- }
- @media only screen and (min-width: 2000px) {
- /* for sumo sized (mac) screens */
- }
- @media only screen and (max-device-width: 480px) {
- /* styles for mobile browsers smaller than 480px; (iPhone) */
- }
- @media only screen and (device-width: 768px) {
- /* default iPad screens */
- }
- /* different techniques for iPad screening */
- @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
- /* For portrait layouts only */
- }
- @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
- /* For landscape layouts only */
- }
- </style>
- @media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */ }
- @media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
- @media (min-width:641px) { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
- @media (min-width:961px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
- @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
- @media (min-width:1281px) { /* hi-res laptops and desktops */ }
Add Comment
Please, Sign In to add comment