CSS Shapes for Floats


Wrap text around shapes other than rectangles using the shape-outside and float properties.

Source Code

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    float: left;
    shape-outside: circle(50%);
    margin-right: 20px;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments