See how this text paragraph aligns with the triangle shape from the left ?! That is basically the biggest advantage of the shape-outside CSS3 property. Your text can nicely flow around the shapes you create.
See how this text paragraph aligns with the triangle shape from the left ?! That is basically the biggest advantage of the shape-outside CSS3 property. Your text can nicely flow around the shapes you create.
<div class="polygon"></div>
<p>Your text goes here</p>
<div style="clear: both;"></div>
.polygon {
float : left;
background : #099;
width : 200px;
height : 300px;
shape-outside : polygon(0 0, 0 300px, 200px 300px);
clip-path : polygon(0 0, 0 300px, 200px 300px);
shape-margin : 30px;
}
p { text-align : justify; }
<div class="circle"></div>
<p>Your text goes here</p>
<div style="clear: both;"></div>
.circle {
float : left;
background : #099;
width : 400px;
height : 400px;
shape-outside : circle(50% at 0% 0%);
clip-path : circle(50% at 0% 0%);
shape-margin : 20px;
}
p { text-align : justify; }