Update format
This commit is contained in:
@ -5,6 +5,9 @@ tags: visual,beginner
|
||||
|
||||
Creates a triangle shape with pure CSS.
|
||||
|
||||
- The color of the border is the color of the triangle. The side the triangle tip points corresponds to the opposite `border-*` property. For example, a color on `border-top` means the arrow points downward.
|
||||
- Experiment with the `px` values to change the proportion of the triangle.
|
||||
|
||||
```html
|
||||
<div class="triangle"></div>
|
||||
```
|
||||
@ -18,8 +21,3 @@ Creates a triangle shape with pure CSS.
|
||||
border-right: 20px solid transparent;
|
||||
}
|
||||
```
|
||||
|
||||
#### Explanation
|
||||
|
||||
- The color of the border is the color of the triangle. The side the triangle tip points corresponds to the opposite `border-*` property. For example, a color on `border-top` means the arrow points downward.
|
||||
- Experiment with the `px` values to change the proportion of the triangle.
|
||||
|
||||
Reference in New Issue
Block a user