Skip to content

Instantly share code, notes, and snippets.

View ahaywood's full-sized avatar

Amy Haywood Dutton ahaywood

View GitHub Profile
@ahaywood
ahaywood / CSS: Media Query - Smartphones (portrait and landscape)
Last active December 12, 2015 10:19
CSS: Media Query - Smartphones (portrait and landscape)
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - Smartphones (landscape)
Last active January 25, 2018 16:45
CSS: Media Query - Smartphones (landscape)
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - Smartphones (portrait)
Last active December 12, 2015 10:19
CSS: Media Query - Smartphones (portrait)
/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 320px) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - iPad (portrait and landscape)
Last active December 12, 2015 10:19
CSS: Media Query - iPad (portrait and landscape)
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - iPad (landscape)
Last active December 12, 2015 10:19
CSS: Media Query - iPad (landscape)
/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - iPad (portrait)
Last active December 12, 2015 10:19
CSS: Media Query - iPad (portrait)
/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - Desktops and Laptops
Last active December 12, 2015 10:18
CSS: Media Query - Desktops and Laptops
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - Large Screens (1824px)
Last active December 12, 2015 10:19
CSS: Media Query - Large Screens (1824px)
/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
/* Styles */
}
@ahaywood
ahaywood / CSS: Media Query - iPhone 4
Last active December 12, 2015 10:19
CSS: Media Query - iPhone 4
/* iPhone 4 ----------- */
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}
@ahaywood
ahaywood / CSS: All Media Queries
Last active December 12, 2015 10:19
CSS: All Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}