@media screen and (max-width:980px)
@media screen and (max-width:768px)
@media screen and (max-width:600px)
@media screen and (max-width:480px)
<link media="only screen and (CRITERIA GOES HERE)" href="mediaQueries.css" type="text/css" rel="stylesheet">
You could also have import it into your exisiting style sheet
@import ulr(name.css) media (criteria)
@media all and(criteria) {
selector{
styles
}
}
@media screen and (max-width:480px) {
selector{
display:none;
}
@media (max-width : ?px) {
selector{ styles
}
}
@media (max-device-width : ?px) {
selector{ styles
}
}
@media (max-height : ?px) {
selector{ styles
}
}
@media (max-device-height : ?px) {
selector{ styles
}
}
@media (max-aspect-ratio : ?) {
selector{ styles
}
}
min-device-aspect-ratio | max-device-aspect-ratio
@media (max-device-aspect-ratio : ?) {
selector{ styles
}
}
@media (max-color : ?) {
selector{ styles
}
}
@media (max-color-index: ?) {
selector{ styles
}
}
@media ( monochrome : ?) {
selector{ styles
}
}
@media (orientation: portrait) {
selector{
styles
}
}
Describes the density of pixels on the device
min or max prefixes
can be dots per inch (dpi) or dots per centimeter (dpcm)
@media (min-resolution: 300dpi) {
selector{
styles
}
}
Television output devices
does not except min or max prefixes
Grid base devices are tty termin or phone display with only one fixed font the value will be 1. Otherwise, the value will be 0.