Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 16, 2021 03:37 pm GMT

- Responsive Web Design (RWD)

, , , ,
, ,

-

?


12 column grid layout
responsive view

:

<img>
responsive image
, div width 500px
img { max-width: 100% }
height-width -

responsive image

html5 <picture>

<picture>    <source srcset="./small-image.jpg" media="(max-width: 400px)">    <source srcset="./big-image.jpg" media="(max-width: 768px)">    <img src="./default.jpg" /></picture> 

responsive view gif

background-image background-size: cover

@media CSS2 , printer, tablet, desktop, phone
CSS2 @media CSS3 @media query

@media query

  • -
  • -
  • Orientation ( Landscape & portrait )

@media query -, -, Orientation, , Breakpoint ,

@media only screen and (max-width: 768px) {        .content {            text-align: center;        }        .content img {            max-width: 80%;        }        .content p {            padding: 0 70px;        }   } 

image responsive view

% 768px %

-

@media only screen and (max-width: 600px) {  //    600px    600px        }@media only screen and (min-width: 600px) {  //    600px    600px       }@media only screen and (min-width: 768px) {  //    768px    768px               }@media only screen and (min-width: 992px) {  //    992px    992px    -       }@media only screen and (min-width: 1200px) {  //    1200px    1200px                  }

google chrome toggle device toolbar

toggle device toolbar
device sizes
Bootstrap
, , - @media query

Reference:

w3schools
smashingmagazine


Original Link: https://dev.to/tamalnh/responsive-web-design-rwd-12d9

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To