Clean up formatting and edit for clarity (#25885)
Added code formatting to property names, changed 'attribute' to 'property' where applicable, and slightly edited text for clarity/conciseness.
This commit is contained in:
@ -58,8 +58,9 @@ The border property allows you to select each side of the element in one declara
|
|||||||
|
|
||||||
### Border Width
|
### Border Width
|
||||||
|
|
||||||
To alter the thickness of a border, use the `border-width` attribute. You may use key terms or exact values to define the border width.
|
To alter the thickness of your border use the `border-width` property. You may use key terms or exact values to define the border width. _Note: You must
|
||||||
Note: You must define a `border-style` for the border to appear. The `width` can be set as a specific size (in px, pt, cm, em, etc) or by using one of the three pre-defined values: `thin`, `medium`, or `thick`.
|
define a border-style for the border to show up._ The width can be set as a specific size (in px, pt, em, rem etc) or by using one of the three pre-defined
|
||||||
|
values: thin, medium, or thick.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```css
|
```css
|
||||||
@ -81,8 +82,8 @@ p {
|
|||||||
|
|
||||||
### Border Color
|
### Border Color
|
||||||
|
|
||||||
Now for the creative aspect of CSS Borders! With the use of the `border-color` property, you will be able to create customized borders to fit the flow and layout
|
Now for the creative aspect of CSS Borders! With the use of the `border-color` property, you will be able to create customized borders to fit the flow and layout
|
||||||
of your website. Border colors can be any color defined by RGB, HSL, hexadecimal, or key terms.
|
of your website. Border colors can be any color defined by RGB, hexadecimal, or key terms. Below is an example of each of these types.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```css
|
```css
|
||||||
|
Reference in New Issue
Block a user