You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If padding/ margin values are provided in percentage(%) value, then no padding/ margin is getting applied. The actual HTML gives the appropriate padding/ margin. Is there any alternative/ fix for this?
Here I have provided 10% padding to the .parent div, it is not getting applied. Please help!!
Below is the output when I provide padding in percentage.
Below is the output when I provide padding in pixels(NOTE: When I use absolute CSS units, it works fine. But I don't want to use absolute units, instead I want to use relative units)
The text was updated successfully, but these errors were encountered:
subhadhal
changed the title
Padding/ Margin values with percentage units not working
Padding/ Margin values with absolute units not working
Oct 24, 2017
subhadhal
changed the title
Padding/ Margin values with absolute units not working
Padding/ Margin values with relative units not working
Oct 24, 2017
I tested your example and indeed padding with percentage values is not working. I did however, get margins with percentage values to work and this may be a workaround for your situation.
Hi Dan,
If padding/ margin values are provided in percentage(%) value, then no padding/ margin is getting applied. The actual HTML gives the appropriate padding/ margin. Is there any alternative/ fix for this?
Here I have provided 10% padding to the .parent div, it is not getting applied. Please help!!
Below is the output when I provide padding in percentage.
Below is the output when I provide padding in pixels(NOTE: When I use absolute CSS units, it works fine. But I don't want to use absolute units, instead I want to use relative units)
The text was updated successfully, but these errors were encountered: