Issue #1232Opened June 25, 2018by Deepak8130 reactions

How to change the margin from px to rem

Question

Hi @artf,

Hope you are doing fine.

I have changed the margin settings from "px" to "rem" in one of the element using below code:

{
property : 'margin-top',
name: 'Top Margin', 
units : ['rem'], 
type: 'integer', 
}

but when i re-assign the same margin setting to element after save then its multiplies the margin with 16x px i.e means the "rem" is converted into "px" and element gets disapper.

Please let us know how we can change the "px" settings to "rem" settings in all the elements of the grapesJs.

Hope for the positive response. Thanks Artf.

Answers (2)

artfJune 28, 20180 reactions

Please @Deepak813... follow the template of the issue, provide a demo and steps to reproduce

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.