---
title: Adding Custom CSS Classes and HTML Anchors
description: "If you want to style a slider or a slide with your own CSS, or link straight to a slide, use the **Advanced** panel. ## Add a CSS class 1. Select the Sliderberg block or a single slide. 2. In…"
url: "https://sliderberg.com/docs/custom-css-classes-and-anchors/"
updated: "2026-11-05"
category: "Slide Backgrounds & Styling"
---

# Adding Custom CSS Classes and HTML Anchors

If you want to style a slider or a slide with your own CSS, or link straight to a slide, use the **Advanced** panel.

## Add a CSS class

1. Select the Sliderberg block or a single slide.
2. In the **Settings** tab, open **Advanced**.
3. Type a class name in **Additional CSS class(es)**, for example **promo-slider**.

Then add your CSS in **Appearance > Editor > Styles > Additional CSS** (block themes) or **Appearance > Customize > Additional CSS** (classic themes).

## Add an HTML anchor to a slide

1. Select the slide.
2. Open **Advanced** and type a name in **HTML anchor**, for example **summer-sale**.

The slide now has that ID on the published page, so your own code or CSS can target it.
