Alex Rivera | Logout

Combining border-top,border-right,border-left,border-bottom in CSS

Asked 2010-06-27T09:45:04.763
118

Is there a way of combining border-top,border-right,border-left,border-bottom in CSS like a super shorthand style.

eg:

border: (1px solid #ff0) (2px dashed #f0F) (3px dotted #F00) (5px solid #09f);
Edit
Report

1 Answer

-4

No you can't set them as single one for example if you have div{ border-top: 2px solid red; border-right: 2px solid red; border-bottom: 2px solid red; border-left: 2px solid red; } same properties for all fours then you can set them in single line

div{border:2px solid red;}
answered 2012-10-25T13:22:36.720

Your Answer