How can use margin: shorthand

How can use margin: shorthand
0.0 0

#1

With css calc function?

margin: 0 calc(15px + 5%) 0 0;

Seems not work?

Any idea?


#2

Why do you say it doesn’t seem to work? Can you provide an example in code?


#3

margin: 0 calc(15px + 5%) 0 0;

above example code. Because is some side set 0 but cant use calc as i see.


#4

Don’t put the 0 in the middle of your TOP BOTTOM value. Put them after it as normal. You only need one for the LEFT and RIGHT values anyway.


#5

No, my dude. In a project, so we can see it not working.