pure css heart
.heart {
width: 36px;
height: 36px;
position: relative;
margin: 1em auto;
transform-origin: 50% 50%;
transform: rotate(45deg) scale(1);
&:before {
content: "";
position: absolute;
display: block;
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
background-color: tomato;
width: inherit;
height: 24px;
top: 12px;
left: 0;
}
&:after {
content: "";
position: absolute;
display: block;
background-color: tomato;
width: 24px;
top: 0;
left: 12px;
height: inherit;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
}
Also in CSS:
- ramteja
- css background image cover center
- how to align elements horizontally in css
- min and max width media query
- nth-child(2n+1)
- text align justify
- @media css
- scroll snap css
- css box shadow
- font-style css
- acf true false field default value
- how to give page a random background image css
- pure css heart
- transparent button css
- media query for mobile view css
- how to link to a css file in html
- how to write css in html
- how to center with position fixed
- javascript remove css class
- css grid center elements inside div
- row class in bootstrap
- how to remove link blue color from a tag using css
- css image radius
- css selectors cheat sheet