Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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! š
1 Resposta
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