Page 1 of 1

Style Manager Padding or Margins Not Working

Posted: Sun Jul 03, 2022 11:22 am
by lpug
I have created a stylem-manager for H1, regardless what settings I insert in padding or margin, it has no effect.
I also tried entering the padding details in the advanced option and this to made no difference either
Font size & colour etc seem to work

I have provide a demo project for you to investigate.

https://1drv.ms/u/s!AkH9C6w0oL9tixBOtfF ... G?e=5fbmFE

Re: Style Manager Padding or Margins Not Working

Posted: Sun Jul 03, 2022 1:28 pm
by Pablo
The workspace does not display the padding for inline styles because the Windows text editor component (richedit) does not support this.
As a developer I have no control over this, this functionality can only be changed by Microsoft .
However, the style will be applied to the published page.

Re: Style Manager Padding or Margins Not Working

Posted: Mon Jul 04, 2022 12:24 am
by lpug
Thanks Pablo, I understand what your saying and I have rechecked and correctly found the styling works in either preview mode or publishing mode. However it only appears to be working with styling manager for H1( I created bottom padding 25px). I created another styling called test and this does not work regarless of all the combinations I have tried.

As usual I have attached my project.

https://1drv.ms/u/s!AkH9C6w0oL9tixM2RIs ... v?e=CeorqT

I feel so bad for asking so many questions and I do appreciate your help.

Re: Style Manager Padding or Margins Not Working

Posted: Mon Jul 04, 2022 6:33 am
by Pablo
The padding does not work because you have applied it to 'inline' text.
In HTML, padding only works on block elements.

If you really want this, then you will have to add 'display:inline-block' to the style.
https://stackoverflow.com/questions/355 ... n-span-tag