Jak zmienić styl na podstawie rozmiaru ekranu
.adjust-me-based-on-size{
margin-left: 15%;
margin-right: 15%;
}
@media only screen and (min-width: 800) and (max-width: 1200) {
.adjust-me-based-on-size {
margin-left: 10%;
margin-right: 10%;
}
}
@media only screen and (max-width: 800px) {
.adjust-me-based-on-size {
margin-left: 5%;
margin-right: 0%;
}
}
Run code snippet
Wandering Worm