Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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!

    #659264

    Hey 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,
    Yigit

    #659436

    Thanks 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.

    #659926

    Hi,

    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,
    Yigit

    #668698

    Ok, you can close this thread.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Grid Row Padding on iPhone’ is closed to new replies.