How can use margin: shorthand

With css calc function?

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

Seems not work?

Any idea?

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

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

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

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.

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