x32x01
  • by x32x01 ||
Create A Heart Shape Using CSS
Create A Heart Shape Using CSS
HTML:
<div id="heart"></div>
CSS:
#heart {
    position: relative;
    width: 100px;
    height: 90px;
}

#heart:before, #heart:after {
    position: absolute;
    content: "";
    left: 50px;
    top: 0;
    width: 50px;
    height: 80px;
    background: red;
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

#heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin :100% 100%;
}
 

Similar Threads

x32x01
Replies
0
Views
93
x32x01
x32x01
x32x01
Replies
0
Views
135
x32x01
x32x01
x32x01
Replies
0
Views
119
x32x01
x32x01
x32x01
Replies
0
Views
136
x32x01
x32x01
x32x01
Replies
0
Views
171
x32x01
x32x01
TAGs: Tags
heart shape

Register & Login Faster

Forgot your password?

Latest Resources

Forum Statistics

Threads
517
Messages
518
Members
45
Latest Member
Tacola
Back
Top