how to move elements in web responsibe design for different screens? 🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to move elements in web responsibe design for different screens? 🤔

Hello everyone! I didn't really understand how to move elements in web responsibe design for different screens using @media screen and ... {}. Can you please help me figure it out? Thank you so much in advance! 😁

29th Jun 2021, 2:58 PM
Nikita Zapekin
Nikita Zapekin - avatar
1 Answer
0
Just put the corresponding css inside the media query {here}, and then the css change with the screen size /* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) {...} /* Small devices (portrait tablets and large phones, 600px and up) */ @media only screen and (min-width: 600px) {...} /* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min-width: 768px) {...} /* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min-width: 992px) {...} /* Extra large devices (large laptops and desktops, 1200px and up) */ @media only screen and (min-width: 1200px) {...} https://www.w3schools.com/css/css_rwd_mediaqueries.asp
1st Jul 2021, 7:06 PM
Luis E. Gómez Mena
Luis E. Gómez Mena - avatar