# Custom Classes in Elements

**URL:** <https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668>\
**Category:** RapidWeaver Elements\
**Created:** [March 4, 2024, 2:41am UTC](https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668 "2024-03-04T02:41:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://forums.realmacsoftware.com/u/Flash)\
**Post date:** [March 4, 2024, 2:41am UTC](https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668/1 "2024-03-04T02:41:41Z")

</div>

Hey @dan , Will it be possible to custom name divs, classes, etc. I believe this will make it possible to better target/isolate specific design features at a container level. Especially helpful with making the websites more accessible.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 4, 2024, 1:34pm UTC](https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668/2 "2024-03-04T13:34:58Z")

</div>

Hey @Flash.

Great question!

Right now we support custom css classes on all Elements. I’ve just spoken with @ben and we think it might be worth offering a way to select what DOM element is used, i.e. `<main>` or `<section>` on certain Elements.

Can you give us a few examples of how you’d like to use such a feature? or perhaps how you use it with existing frameworks in Stacks?

Cheers,  
Dan

---

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://forums.realmacsoftware.com/u/Flash)\
**Post date:** [March 4, 2024, 1:48pm UTC](https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668/3 "2024-03-04T13:48:35Z")

</div>

This is good news. Well, it’s a little difficult to provide specific examples, but in general, if I can isolate CSS to specific containers, I can fully design them without affecting other containers. If implemented really well, it’s possible to design at the element level without adding a bunch of extra containers. This obviously saves on additional containers and layers, making it faster and less complicated.

EDIT: The saved styles that are already present are awesome! This is just in the hopes of isolating things to a single container and element. Sometimes global styling is not what you want. 🙃

---

<div class="post-metadata">

**Author:** ![anon68150607](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@anon68150607](https://forums.realmacsoftware.com/u/anon68150607)\
**Post date:** [March 4, 2024, 2:14pm UTC](https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668/4 "2024-03-04T14:14:22Z")

</div>

Ooh, I quite like the idea of being able to specify which DOM elements are used with certain elements. Being somebody who use to enjoy writing HTML by hand and worrying about semantics, I could see this being useful; when listing article summaries, creating different sections, denoting the main region of content vs asides, etc.

---

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://forums.realmacsoftware.com/u/Flash)\
**Post date:** [March 4, 2024, 2:31pm UTC](https://forums.realmacsoftware.com/t/custom-classes-in-elements/42668/5 "2024-03-04T14:31:16Z")

</div>

Yeah, that’s what I was trying to say.
