Zemez

CSS shapes for images in Gutenberg

From this tutorial, you will figure out, what is CSS shapes for images, how to apply it to your images. Also, you’ll learn how to add CSS shapes to your Gutenberg gallery block.

Why using the CSS shapes

To start with, the CSS stands for Cascading Style Sheets. It is the “so-called” language, with the help of which you are able to make your pages look more interesting and attractive for visitors. CSS Shapes is actually a set of rules for wrapping content around custom shapes. However, it does not actually draw the shape, but rather gives instructions to the browser on what the float area looks like.

The CSS shapes can be anything from circles and ellipses to simple or complex polygons. You can also organize your images in a way, which allows your text content to obtain the images. Moreover, you don’t need to acquire coding skills to build unique layouts.

Set a CSS shape for a single image

To make an image in Gutenberg shaped, you will need to do a few steps:

Set a CSS shape for the whole Gutenberg gallery

After that, let’s create a gallery with the help of the Gutenberg editor. Go to the page, where you want to showcase it and add a needed block.

We hope you liked our simple tutorial on how to apply the CSS shapes for Gutenberg images. Subscribe to our newsletter for more useful tutorials and instructions.