Title: Section block &#8211; mobile margin % values ignored?
Last modified: September 13, 2021

---

# Section block – mobile margin % values ignored?

 *  Resolved [Nate](https://wordpress.org/support/users/goseongguy/)
 * (@goseongguy)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/section-block-mobile-margin-values-ignored/)
 * Hello,
 * I have a section block with padding & margin values specified in px for desktop.
   On desktop frontend, everything is correct.
 * For mobile, I specify different padding and margin values in %.
 * On mobile frontend, the left and right _padding_ % values are applied, but the
   left and right _margin_ % values are not applied and instead are taking the desktop
   values specified in px.
 * For example, I have desktop margin-left:20px, and mobile margin-left 2.5%. Desktop
   correctly has 20px frontend, but mobile also has 20px frontend instead of 2.5%.
 * Could this be a bug? I wonder if this can be reproduced?
 * Thanks for all continuous good work on the plugin!
    Nate

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [BSF – Sweta Kumari](https://wordpress.org/support/users/swetakumari/)
 * (@swetakumari)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/section-block-mobile-margin-values-ignored/#post-14964957)
 * Hello [@goseongguy](https://wordpress.org/support/users/goseongguy/) ,
 * I’d like to let you know, we are adding margin-left and right On Mobile/Tablet
   depends upon alignment and the content width. For Ex. if `contentWidth` is `boxed`
   and Alignment is Right, then we are adding `margin-right` to `.uagb-section__wrap`
   on tablet/mobile and if Alignment is Left then we are adding `margin-left` on
   tablet/mobile.
 * I hope that clarifies.
 * Regards,
    Sweta
    -  This reply was modified 4 years, 7 months ago by [BSF - Sweta Kumari](https://wordpress.org/support/users/swetakumari/).
 *  [BSF – Sweta Kumari](https://wordpress.org/support/users/swetakumari/)
 * (@swetakumari)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/section-block-mobile-margin-values-ignored/#post-14988669)
 * Hello [@goseongguy](https://wordpress.org/support/users/goseongguy/) ,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Section block – mobile margin % values ignored?’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif?rev
   =3240412)
 * [Spectra Gutenberg Blocks – Website Builder for the Block Editor](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/)

## Tags

 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [mobile](https://wordpress.org/support/topic-tag/mobile/)
 * [percent](https://wordpress.org/support/topic-tag/percent/)
 * [section](https://wordpress.org/support/topic-tag/section/)

 * 2 replies
 * 2 participants
 * Last reply from: [BSF – Sweta Kumari](https://wordpress.org/support/users/swetakumari/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/section-block-mobile-margin-values-ignored/#post-14988669)
 * Status: resolved