Last active
June 6, 2017 06:59
-
-
Save asadaly111/6ba58d3c0f2eb465a84f53c2b7723fd6 to your computer and use it in GitHub Desktop.
Bootstrap Media Queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*bootstrap media queries*/ | |
/*xs*/ | |
@media (min-width: 1px) and (max-width: 767px){ | |
} | |
/*sm*/ | |
@media (min-width: 768px) and (max-width: 992px){ | |
} | |
/*MD*/ | |
@media (min-width: 992px) and (max-width: 1200px){ | |
} | |
/*Lg*/ | |
@media (min-width: 1200px){ | |
} | |
/* 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 */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment