1. Home
  2. Troubleshooting
  3. Custom Bloc Padding

Custom Bloc Padding

The Problem

I want to add a custom padding value to a Bloc.

The Solution

Blocs comes with various padding options, however, there are times when you may want to add a custom padding value to a Bloc. The following steps explain how to do this.

1. Select the Bloc on the design canvas or via the layer tree and set its padding value to none.
2. Give the Bloc a custom class and then open this class in the Class Editor.
3. Navigate to the Margin | Padding options within the Class Editor and set the top padding and the bottom padding to your desired value. These steps can be repeated at the various available breakpoints for a more customised styling on smaller screen sizes.

Updated on 11th December 2018

Was this article helpful?

Related Articles