Home  >  Article  >  Web Front-end  >  What are the properties for setting borders in css

What are the properties for setting borders in css

青灯夜游
青灯夜游Original
2021-04-29 14:58:4310289browse

Set the properties of the border: border, border-color, border-style, border-width, border-image, border-radius, border-bottom, border-left, border-top, etc.

What are the properties for setting borders in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

The CSS border property allows you to specify the style and color of an element's border. Example:

What are the properties for setting borders in css

##css border attribute

PropertyDescriptionCSSborderComposite property. Sets the properties of the object's border. 1border-bottomComposite attribute. Sets the properties of the object's bottom border. 1border-bottom-color Sets or retrieves the bottom border color of the object. 1 border-bottom-style Set or retrieve the bottom border style of the object. 1border-bottom-width Sets or retrieves the bottom border width of the object. 1border-color Set or retrieve the border color of the object. 1border-leftComposite attribute. Sets the properties of the object's left border. 1border-left-colorSet or retrieve the left border color of the object. 1border-left-style Set or retrieve the left border style of the object. 1border-left-width Set or retrieve the left border width of the object. 1border-rightComposite attribute. Sets the properties of the object's right border. 1border-right-colorSet or retrieve the right border color of the object. 1border-right-style Set or retrieve the right border style of the object. 1border-right-width Set or retrieve the right border width of the object. 1border-styleSet or retrieve the border style of the object. 1border-topComposite attribute. Sets the properties of the object's top border. 1border-top-colorSet or retrieve the top border color of the object1border-top-styleSet or retrieve the top border style of the object. 1border-top-width Sets or retrieves the top border width of the object. 1border-widthSet or retrieve the border width of the object. 1border-bottom-left-radius Sets or retrieves the lower left corner rounded border of the object. Provide 2 parameters, separated by spaces. Each parameter is allowed to set 1 parameter value. The first parameter represents the horizontal radius, and the second parameter represents the vertical radius. If the second parameter is omitted, it defaults to the 1st parameter. Parameters3border-bottom-right-radiusSet or retrieve the rounded border of the lower right corner of the object. 3border-image Sets or retrieves the object's border style to fill with an image. 3border-image-outsetSpecifies the amount by which the border image exceeds the border. 3border-image-repeat Specifies whether the image border should be repeated (repeated), stretched (stretched) or covered ( rounded). 3border-image-sliceSpecifies the inward offset of the image border. 3border-image-sourceSpecifies the image to be used in place of the border style set in the border-style property. 3border-image-widthSpecifies the width of the image border. 3border-radius Sets or retrieves the rounded border of an object. 3border-top-left-radiusDefine the shape of the upper left border. 3border-top-right-radiusDefine the shape of the upper right border. 3box-shadowAdds one or more shadows to the box. 3
(Learning video sharing:

css video tutorial)

The above is the detailed content of What are the properties for setting borders in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn