Chapter 6. How-to Guides

Style a Slot

Each slot is centered and takes the full width it is given. To change that, for example to add a margin or a small “Advertisement” label, enter a class in the module's Custom CSS Class and style it in your template's CSS.

the section called “CSS Classes” lists the classes CLS Ad Slot uses, if you need them.

Caution

Don't set a height or minimum height on the slot in your own CSS. CLS Ad Slot sets those from the module's settings, and it needs to change them when it collapses a slot. Use the settings instead.

On This Page