-
AuthorPosts
-
July 9, 2016 at 12:03 am #658619
On this page I have 2 grid row sections that I have added padding to. It looks good on all devices except on my iPhone in portrait and landscape mode. I don’t want any padding on this screen size. Can you please give me some quick css to remove the padding for these sections on my iPhone in portrait and landscape mode? I have added a custom css class of custom-grid-row-section to target these specific sections. Thank you!
July 11, 2016 at 1:58 pm #659264Hey djshortkut,
Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your grid row cells that you would want to display without padding and give them a custom CSS class and then add following code to Quick CSS
@media only screen and (max-width: 480px) { .your-custom-class { padding: 0 !important; }}
If you remove padding from all grid row cells, the ones only have text in them will stick to sides
Best regards,
YigitJuly 11, 2016 at 5:35 pm #659436Thanks Yigit. I added a custom css class to each of the grid row cells of custom-grid-row-section-padding and added the above code into quick css with my custom css class and it didn’t seem to work.
July 12, 2016 at 3:19 pm #659926Hi,
Can you please try following instead
.custom-grid-row-section-padding { padding-left: 0!important; padding-right: 0!important; }
If that does not help, please go to Enfold/css/grid.css file and find
@media only screen and (max-width: 767px) { .responsive #top #wrap_all .av-flex-cells .no_margin { display: block; margin: 0; height: auto !important; overflow: hidden; padding-left: 8% !important; padding-right: 8% !important; }}
And change it to
@media only screen and (max-width: 767px) { .responsive #top #wrap_all .av-flex-cells .no_margin { display: block; margin: 0; height: auto !important; overflow: hidden; padding-left: 8%; padding-right: 8%; }}
Best regards,
YigitAugust 4, 2016 at 7:35 pm #668698Ok, you can close this thread.
-
AuthorPosts
- The topic ‘Grid Row Padding on iPhone’ is closed to new replies.