1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Circular Icons With A Massive Border Radius as a css til

This commit is contained in:
jbranchaud
2019-11-22 16:34:21 -06:00
parent 4c554ade33
commit 61bdfbfc63
2 changed files with 15 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
_873 TILs and counting..._
_874 TILs and counting..._
---
@@ -96,6 +96,7 @@ _873 TILs and counting..._
- [Animate Smoothly Between Two Background Colors](css/animate-smoothly-between-two-background-colors.md)
- [Apply Multiple Box Shadows To Single Element](css/apply-multiple-box-shadows-to-single-element.md)
- [Apply Styles To The Last Child Of A Specific Type](css/apply-styles-to-the-last-child-of-a-specific-type.md)
- [Circular Icons With A Massive Border Radius](css/circular-icons-with-a-massive-border-radius.md)
- [Dry Up SCSS With Mixins](css/dry-up-scss-with-mixins.md)
- [Lighten And Darken With CSS Brightness Filter](css/lighten-and-darken-with-css-brightness-filter.md)
- [Lighten And Darken With SCSS](css/lighten-and-darken-with-scss.md)

View File

@@ -0,0 +1,13 @@
# Circular Icons With A Massive Border Radius
Elements by nature are rectangular. By adding some `border-radius`, you can
soften the edges a bit. If you add a massive amount of `border-radius`, you
effectively make the element round.
```css
div.circle {
border-radius: 50000px;
}
```
Here is a [live example](https://codepen.io/jbranchaud/pen/bGGJKJW).