Border Styles and Individual Sides
Border styles include solid, dashed, dotted, double and groove. Set each side with border-top, border-right and so on, or use border-width, border-style and border-color.
Example
<style>
.b { padding: 8px; margin: 6px 0; background: #1e293b } .s { border: 3px double #14b8a6 } .t { border-top: 4px dashed #f59e0b; border-bottom: 2px dotted #ef4444 }
</style>
<div class="b s">double</div><div class="b t">top and bottom</div>Exercise
Dashed style.
border: 2px red;
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.