Tagged: padding
Hi, guys!
I’ve used 20% left and right padding in all boxes with text to make them more appealing.
Now I have problems visiting the website from mobile.
How can I switch off padding in these boxes on smaller displays?
Hey shaversky,
Wrap your code in this, adjust the pixel value as needed:
@media only screen and (min-width: 768px) {
your code goes here
}
Best regards,
Rikard
Hi Rikard
Thank you for your answer.
I have more than 5 boxes like this – should I adjust the pixel value for each one separately?
Hey!
Turn on the custom css class so that you can specify which element to edit: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
For example, edit the column that contains the text block (What we do) and then add a custom css class attribute. Use “custom-column” for example. You can then adjust the padding on mobile devices with css media queries:
@media only screen and (min-width: 768px) {
.custom-column { padding: 0 1% 0 1% !important; }
}
Best regards,
Ismael