Hi, i have the last one ( I hope... ) problem in bulding a site.
I neeed to set to zero the padding right and left of a container (div.rt-block) on a module only and on phones only.
I can not use class nopaddingright ecc... because on desktops it isn't ok.
I can not create two different modules (one visible-phone and one visible-desktop) because this causes problems to the videoplayer inserted into the modules.
See this page for example:
www.mbreporter.it/ambiente/video/monza-dall-alto
How to do, please?
give your module a custom suffix like "custom-phone" and then reduce it's margin's padding with custom css
.custom-phone {margin: 0; padding: 0;}
This is how to create a custom CSS file compatible with Gantry 4:
Simply create a file called "<TEMPLATENAME>-custom.css" and put this file in the CSS folder of the template (where <TEMPLATENAME> is the name of the template as seen in template manager e.g. rt_fracture). GANTRY4 will automatically load this CSS file. If you wish, you can also have browser specific files by appending, for example, "-ie9" making the filename "<TEMPLATENAME>-custom-ie9.css"
SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT
SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT