Automatically setting margins : web_design

By Prosyscom
In March 3, 2018
74 Views


So I know that in CSS I am able to write

margin: 0px auto; 

In order to have horizontal margins with a value of zero, and to center out the element by making the vertical margins automatically set.

My question is, am I able to do it the other way around? I am currently on codeacademy and its asking me to have the horizontal margins set automatically. Only thing is I have never applied this not have I learned that this is a viable option. To be clear it would be

margin: auto 10px;

Is this right? Or is the auto value for horizontal margins just 0px?

قالب وردپرس