HOW TO add shadow in a block

Hi, I want to have a border around a custom block. How I should do it ?

Regards.
Joel.

I see two options,
adding the html tags and hardcoded style on those at the Custom block content level (Using Full HTML format)
Or via theming.

Hello Joel,

There is already a class in the theme that adds borders to a block.

You can check in https://webtools.web.cern.ch/technologies/drupal/styling/cern-theme under " Blocks with Shadowed borders" at the bottom of the page.

In quick steps:

  1. Install https://www.drupal.org/project/block_class that permits you to add classes to a block
  2. Add the class “shadow-block” as css class of the block

Let me know if that works for you

Konstantinos

1 Like

THANKS. This is exactly what I wanted.