How do you set an element to have equal margins on both left and right sides?

Chad Napper shared this question 4 years ago
Answered

Something similar to:


p {


margin: 0 auto;


}


in CSS.

Comments (1)

photo
1

Hi Chad,


If you want to center an element horizontally I recommend using a container (Dynamic Panel) and set its layout 'Horizontal' and 'Center' in the properties panel.


Regards