Tickets › Tickets › Wanium › Mobile left & right margins › Reply To: Mobile left & right margins
June 14, 2019 at 12:42 pm
#8022
Thanks Danny
I played around with the value and find out that this works:
@media (max-width: 640px) {
.container {width: 350px;}
}
@media (max-width: 480px) {
.container {width: 350px;}
As I googled what the code meant, The first is if the width of the phone is not more than 640px, the container width should be 350px. But I am not sure why you put 2 sizes there? As I don’t know the difference, I set both width to be the same 350px. Does this interfere with the reason you put the 2 sizes there?
I am using Samsung S8
