Borders part 2
Border Width
The properties for the border can be set separately. The border-width property specifies the width of the border.
The HTML:<p class="first">
Border width of this paragraph is set to 2px.
</p>
<p class="second">
Border width of this paragraph is set to 5px.
</p>
The CSS:
Result:
Border Color
The border color of the element can be defined using a color name, RGB, or Hex values.
The HTML:<p class="first">
Border color has been created using <strong>color name.</strong>
</p>
<p class="second">
Border color has been created using <strong>Hex values.</strong>
</p>
<p class="third">
Border color has been created using <strong>RGB values.</strong>
</p>
The CSS:
Result:
None of the border properties will have any effect unless the border-styleproperty is set.
Comments
Post a Comment