Can I set all offset sides in CSS at once?

css, html

Solution

No, there does not exist a shorthand `sides` property for setting the offsets. You have to set them all separately.

There are shorthands for other kinds of properties that involve the sides of a box, e.g. `margin`, `padding` and `border`, but not for the positional offsets `top`, `right`, `bottom` and `left`.

Problem

Instead of having: ``` right:0px; left:0px; top:0px; bottom:0px; ``` Can I have something like this? ``` sides:0px; ```

Original source