Title: Cannot specify separate margin/padding values
Last modified: July 31, 2018

---

# Cannot specify separate margin/padding values

 *  Resolved [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/)
 * Hi –
 * I love the flexibility and detail in the advanced design tab in the element builder,
   but I cannot seem to ONLY specify one param in an element’s margin/padding. I
   know we can deselect the “LINK” icon to enter different values for T|R|L|B, but
   the JavaScript validation forces a value (defaulting to ‘0’).
 * This means if I JUST want to apply “margin-bottom:12px” but leave all the other
   dimensions untouched, I cannot do that. The plugin always outputs a full margin(
   or padding) set like “margin: a b c d”.
 * Also, it’s not possible to specify “auto” (which is a valid CSS value) as a value
   for the same reasons.
 * Any advice please?

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

 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10543677)
 * What Theme are you using? I use OceanWP and do not have these issues.
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544073)
 * I’ve tried it on a fresh WP install running 2017 theme. The issue is still present–
   you can’t delete the numbers in the margin/padding boxes. They auto-update to‘
   0’ if you enter any non-integer character (or space)
 * Please try for yourself: make a section, edit section, –> Advanced tab, unlink
   the parameters, and try making a custom CSS of “margin-top:20px”.
 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544410)
 * Not sure about your instructions. If I try to type in “margin-top:20px”, the 
   box is reset to 0. If I type in 20 the image moves down 20 pixels. I do sometimes
   see “Auto” in these boxes but I think that is related to the default theme settings.
   Why are you entering non-integers? You don’t have to enter code, just a numeric
   value.
    -  This reply was modified 7 years, 10 months ago by [LesTexas60](https://wordpress.org/support/users/lestexas60/).
    -  This reply was modified 7 years, 10 months ago by [LesTexas60](https://wordpress.org/support/users/lestexas60/).
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544451)
 * Thanks @lextexas60 – but I don’t think you understand my description of the issue.
   The issue is that you can’t just enter a number in ONE of the FOUR separate margin/
   padding boxes without the others being set to zero. Boxes that are set to zero
   get a 0px explicit value in the output CSS. Therefore, it’s not possible to generate
   a single-dimension margin/padding.
 * Do you know if the plugin authors read this Support area, or should we put in
   tickets on their website?
 * Thanks
 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544487)
 * Take a look at this page. It has a capture of my entries screen. I can enter 
   1 to 4 numbers with no issues.
    [http://www.prestigiousvibe.com/contracts/](http://www.prestigiousvibe.com/contracts/)
 * AS I said, I use OceanWP theme, I havn’t tried this in your theme.
    -  This reply was modified 7 years, 10 months ago by [LesTexas60](https://wordpress.org/support/users/lestexas60/).
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544586)
 * Thanks but you are still missing the problem. You can’t just enter 1 number.
 * Even in your screenshot, you have entered 4 numbers for padding: 9, 11, 0, 0.
   This will output css: “margin:9px 11px 0 0”.
 * I want to JUST output “margin-top:9px” (so that CSS settings from other classes
   are not overridden)
 * I guess I should submit an issue in Github for this…
 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544617)
 * Look again, I only put one value in each of the Margin and Padding boxes. I added
   them separately and together to make sure both ways would work. They work fine.
   
   [http://www.prestigiousvibe.com/contracts/](http://www.prestigiousvibe.com/contracts/)
 * I didn’t enter the 0’s, they were the default entries already there.
 * HIt F5 a couple times if you still see the old image.
    -  This reply was modified 7 years, 10 months ago by [LesTexas60](https://wordpress.org/support/users/lestexas60/).
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544695)
 * I feel like we are going around in circles. You just verified my point – you 
   CANNOT have EMPTY values in those boxes; the default ‘0’ cannot be removed. That’s
   precisely my point. I’m not sure you understand how this UI box generates the
   output CSS. Thanks anyway for trying – I’ll put in in Github for them to review.
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544718)
 * Here’s the Github issue – I used your screenshot, thanks!
    [https://github.com/pojome/elementor/issues/5270](https://github.com/pojome/elementor/issues/5270)
 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544786)
 * Twig, If I sounded like we were arguing, I wasn’t. I just wanted to make sure
   I understood your issue. Please come back and add to this post when you find 
   out the results.
    Good Luck
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544804)
 * Not taken that way at all [@lestexas60](https://wordpress.org/support/users/lestexas60/)!
   Just a tricky issue to explain. I’ll certainly update this thread with any results.
   I’m new to Elementor (been using Visual Composer for years) but I’m really liking
   it so far.

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

The topic ‘Cannot specify separate margin/padding values’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/cannot-specify-separate-margin-padding-values/#post-10544804)
 * Status: resolved