Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <style> div { color: darkorange; font-size: 3vw; padding: 3vw; margin: 3vw; border-style: solid; } .a { border-color: limegreen; } .b { border-color: navy yellowgreen tomato silver; } .c { border: 5px dotted gold; } </style> <div>Default color. If the border's color hasn't been explicity set, it uses <code>currentColor</code> (the value of the <code>color</code> property).</div> <div class="a">This box's border color has been explicity set.</div> <div class="b">Each side of this box has been set to a different color.</div> <div class="c">This box has had its border properties set using the <code>border</code> shorthand property.</div>
Preview