Media Queries

supe mag pro seo
0

 

Media Queries

media query is a fundamental part of CSS3 that lets you render content to adapt to different factors like screen size or resolution.

media queries - responsive web design
Media queries for desktop, tablet, smartphone

It works in a similar way to an “if clause” in some programming languages, basically checking if a screen’s viewport is wide enough or too wide before executing the appropriate code.

@media screen and (min-width: 780px) {
.full-width-img {
margin: auto;
width: 90%;
}

If the screen is at least 780 pixels wide, “full-width-img” class images will take up 90% of the screen and be automatically centered by equally wide margins.

Tags

Posting Komentar

0 Komentar
Posting Komentar (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top