Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1402574
    minyona
    Participant

    so, i gave rows on the homepage of a website i’m building a 10% padding because i like how it looks on desktop. but as i size the screen down, it obviously remains at 10% padding right and left, and then in mobile it’s too narrow and wastes space.

    How can i, without creating sections or rows that appear and disappear based on device or screen size change the padding based on screen size?

    #1402575
    minyona
    Participant
    This reply has been marked as private.
    #1402578
    minyona
    Participant
    This reply has been marked as private.
    #1402814
    Friech
    Moderator

    Hi There,

    Thank you for writing in! We can reset the ROW’s padding if the page is viewed on mobile. Please add this on your custom CSS.

    @media (max-width:  767px) {
    	.reset-mobile-padding {
    		padding-right: 0 !important;
    		padding-left: 0 !important;
    	}
    }

    Then add a class reset-mobile-padding on your ROWs.

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-1402574 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>