CERN Accelerating science

Close menu

Margin

Components - LAYOUT

CERN provided Drupal 8 sites:

  • Install and enable the Margin Component module and all its dependencies under Extend
  • After installing you can add margins on all content types which use Paragraph components like the Landing Page
  • To create a margin just choose Margin Component from the Paragraph chooser (if there is one) and define your properties
  • You can choose between three different sizes and which color the margin will be printed in

Other:

  • Just include the HTML snippet provided below
Usage
<div class="component-margin component-margin-small"></div>
Show more code
Show more code
The zip file contains the orginal SCSS files

Just paste the provided HTML code where you want the margin to appear