{"id":203844,"date":"2015-06-17T03:11:46","date_gmt":"2015-06-17T10:11:46","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=203844"},"modified":"2020-10-01T11:40:11","modified_gmt":"2020-10-01T18:40:11","slug":"shape-outside","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/s\/shape-outside\/","title":{"rendered":"shape-outside"},"content":{"rendered":"\n
The It\u2019s important to note that this property will only work on floated elements for now, although this is likely to change in the future. The shape-outside<\/code> property controls how content will wrap around a floated element\u2019s bounding-box. Typically this is so that text can reflow over a shape such as a circle, ellipse or a polygon:<\/p>\n\n\n\n
.element { \n float: left;\n shape-outside: circle(50%);\n width: 200px;\n height: 200px;\n}<\/code><\/pre>\n\n\n\n
shape-outside<\/code> property can also be manipulated with transitions or animations<\/a>.<\/p>\n\n\n
Values<\/h3>\n\n\n
circle()<\/code>: for making circular shapes.<\/li>
ellipse()<\/code>: for making elliptical shapes.<\/li>
inset()<\/code>: for making rectangular shapes.<\/li>
polygon()<\/code>: for creating any shape with 3 or more vertices.<\/li>
url()<\/code>: identifies which image should be used to wrap text around.<\/li>
initial<\/code>: the float area is unaffected.<\/li>
inherit<\/code>: inherits
shape-outside<\/code> value from parent.<\/li><\/ul>\n\n\n\n