Вопрос

Just a short question

Is there a shorter way of writing this code so that all 3 are covered in one rule?

border-left: 2px solid #006699; border-right: 2px solid #006699; border-bottom: 2px solid #006699;

Это было полезно?

Решение

You would use the border shorthand and then set border-top to none. (example here)

border: 2px solid #006699;
border-top: none;
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top