|
Chapter 5: Border stylesBorder of an element has three properties which can be specified - color, style and width. Example 1:
border-color:yellow; Further, each of the above property can be specified independently for 4 sides: left, right, bottom and top. This gives the following 4x3=12 properties: border-bottom-color border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-style border-top-width Example 2:
border-right-color:yellow; Example 3: It is possible not to specify all four sides of the border
border-right-color:yellow; Types of border stylesThe border-style property can be specified as: border-style:solid border-style:dotted border-style:dashed border-style:double border-style:groove border-style:ridge border-style:inset border-style:outset |
Got a thought to share or found a
bug in the code?
We'd love to hear from you:
Name: | |
Email: | (Your email is not shared with anybody) |
Comment: |
Facebook comments: