CSS Shape-Outside
Today I came across the css 'Shape-Outside' property, which I feel interesting to share. There are times, where we need to add images and text next to each other. We can do it easily by floating the image then, the text automatically adjust next to image. Problem here here is, image occupies actual width and then text starts after that. What if, we had been told to adjust text around the image, utilizing the empty space. Then the "Shape-outside" property come to the picture. The shape-outside CSS property defines the shape around which content will wrap on the outside of an element. This example simulates a circle exclusion with an exaggerated rounded corners rectangle. The shape is applied to a floated element so that content will wrap around it. The shape-outside CSS property uses shape values to define the float area for a float and will cause inline content to wrap around the shape instead of the float's bounding box. The syntax for this property as...