Mariko
Mariko

Reputation: 107

Can I simplify this CSS?

I'm not sure about this but is there a way I can simplify:

-moz-border-radius: 10px 0px 0px 10px / 10px 0px 0px 10px;

Upvotes: 0

Views: 86

Answers (1)

cwharris
cwharris

Reputation: 18125

You can simplify the horizontal and vetical radii to a single declaration:

-moz-border-radius: 10px 0px 0px 10px;

However, you cannot simplify it further, as radii are only inherited diagonally. (bottom left will take top right's value if bottom left value does not exist).

Upvotes: 4

Related Questions