The Art of Writing Short Stories Read Here

Media Type in Media Queries

 

Media Type in Media Queries

When writing media queries in CSS we use the only keyword to specify the type of device. Initially, CSS incorporated a variety of media types such as screen, print and handheld. In order to ensure responsive design and to accommodate a variety of screen sizes the keyword screen is now always used for displaying content.


@media only screen and (min-width: 600px) {
    /* ruleset for >= 600px */

}   

You may also like :