Hey there,
I don't understand what I'm doing wrong here, can anyone help with good CSS?
I'm using the antimatter theme and am trying to make the column more narrow for big screens. Now it turns out that when I look at it from an actual mobile phone, the margins are completely off.
Thanks!
This is the page:
https://www.mariabusque.net/ueben
This is the CSS I was using to adjust the margins:
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h2 .modular-row.center h4 {
margin-left: 12rem;
margin-right: 12rem;
}
@media only screen and (min-width: 480px) {
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h2, .modular-row.center h4 {
margin-left: 1rem;
margin-right: 1rem;
}
}
@media only screen and (min-width: 600px) {
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h2, .modular-row.center h4 {
margin-left: 3rem;
margin-right: 3rem;
}
}
@media only screen and (min-width: 801px) {
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h4 {
margin-left: 6rem;
margin-right: 6rem;
}
}
@media only screen and (min-width: 1025px) {
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h4 {
margin-left: 10rem;
margin-right: 10rem;
}
}
@media only screen and (min-width: 1225px) {
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h4 {
margin-left: 16rem;
margin-right: 16rem;
}
}
@media only screen and (min-width: 1525px) {
.modular-row.center p, .modular-row.center h3, .modular-row.center h1, .modular-row.center h4 {
margin-left: 22rem;
margin-right: 22rem;
}
}
@media only screen and (min-width: 1525px) {
.modular-row.center h2 {
margin-left: 16rem;
margin-right: 16rem;
}
}
