This is what I want: $Variable = 3; I want to change this number to a 1 on a mobile
So I was hoping to do something like this:
if ((@media only screen and (min-width:481px)) or (@media only screen and (min-width:981px)){ $Variable = 3; } else $Variable = 1;
I'll try to explain;
When changing from an iPad or desktop screen size I want the value of the variable to change from 3 to 1. Thats why I was hoping to use an if statement.
Is this possible? Or do i need to use css in some way? Any help welcome