CSS border-style
In CSS, border styles are set through border-style. Four borders can be set at a time, or each border style can be set separately. Many elements in the webpage, especially the border styles of DIV blocks and span areas, can use border-style To design, border-style must be displayed correctly, usually including a combination of border-width (border width) and border-color (border color). Almost all mainstream browsers support CSS border-style border style properties.
CSS border-style setting syntax
description | grammar |
Set four border styles | border-style: style; |
Set only the top border style | border-top-style: style; |
Set right border style only | border-right-style: style; |
Only set the bottom border style | border-bottom-style: style; |
Set the left border style only | border-left-style: style; |
CSS border-style example
Test the border style
</div>
Remarks, please use the color code table to select the border color .
Common CSS border-style style sheet
border-style:solid; | border-style:dotted; | border-style:dashed; |
border-style:double; | border-style:outset; | border-style:groove; |
border-style:ridge; | border-style:inset; | border-style:none; |
Post a Comment
0 Comments