CSS3 > Borders

Border Property in CSS3

How to set all the border properties in one declaration in CSS3?

By using border property we can set all the border properties in one declaration.

        p {
            border: brown dotted thin;

        div {
            border: green dashed thick;


In the above code snippet we have given border property with different styles to the <p> element and <div> element. border property with the value "brown dotted thin" gives the brown color thin dotted border and the value "green dashed thin" gives the green color thin dashed lines. 


 Views: 3071 | Post Order: 73

Write for us

Hosting Recommendations