How to add a CSS border style?

The Astratic theme comes with a set of CSS classes with which you can make additional improvements or changes while creating any layout. You can use them to extend the possibilities of Gutenberg’s bricks or to customize the appearance of the pieces. In the Astratic theme, we have added new CSS classes that allow you to insert a border (CSS border-style).

We can use frames on the page to highlight a specific element or to build an aesthetic structure of the page.

The purpose of the CSS classes is to help more advanced users to make minor tweaks directly in the content editor without having to edit the source code.

CSS border-style

The CSS border property defines the line width of the frame’s border.

--border-value (where value is a digit from 1 to 12), the larger the number the thicker the frame, e.g.




How to use it?

  • In the Gutenberg Editor, select the block to which you would like add a class
  • In the right sidebar with the block settings find “Advanced” tab and expand it, now find a field with “Additional CSS class(es)”
  • Put a selected class to this field, e.g. --border-5 and save changes, that’s all!
css border

How to change the color of the frame?

The frame color is taken from the theme settings:

Appearance > Customize > Astratic Colors > General Color Palette > Border color

css border

Do you have any questions? Is it something we can help? Let us know! ????

Add the first comment and start a discussion

Leave a Reply

Your email address will not be published. Required fields are marked *

Need help?

Thank you!


We will answer to your message as soon as possible

Need a help? support-icon

This site uses cookies to optimize the use of it and for statistical purposes in accordance with Privacy Policy. The conditions for storing cookie files can be specified in Browser Settings. Further using the site and not blocking cookies means that you accept the use of these files.

Service namePurposeSettings
Service nameCookies required for the operation of the website.
Google AnalyticsAnalytical purposes.
DisqusCookies required for the operation of the comments system.