⌚ CSS3 Essentials
Border
- Outer edge of the padding and inner edge of margin.
- Default border size is zero and invisible.
- Border properties/Border longhand
- <border-width> | <border-style> | <border-color>
- Border shorthand:
- Syntax: border: border-width border-style border-color ;
- Example: .disk { border: 3x solid blue; }
- Border longhand
- Border shorthand + {keyword}
- <border-top> | <border-right> | <border-bottom> | <border-left>
- <border-width> | <border-style> | <border-color>
- Border shorthand + {keyword} + {keyword}
- <border-top-width> | <border-top-style> | <border-top-color> | <border-left-width> | ...
- Border radius
- border-radius: top right bottom left;
- Example:
- border-radius: 20px;
- border-radius: 20px 30px;
- border-radius: 20px 30px 40px;
- border-radius: 20px 30px 40px 50px;
- Border radius longhand options
- <border-top-left-radius> | <border-top-right-radius> | <border-bottom-left-radius> | <border-bottom-right-radius>
- Create elliptical corners
- div { border-radius: 10px / 20px; }
- div { border-radius: 10px 20px / 30px 40px; }
- Border Image
- Require when complex design for border not like solid color.
- Background image is the bottom image.
- Properties
- <border-image-source>
- <border-image-slice>
- <border-image-repeat>
- Ref:
No comments:
Post a Comment