# Class and id But when I write # name; id name, the id name is not written on the element of the tree panel

**URL:** <https://forum.pinegrow.com/t/class-and-id-but-when-i-write-name-id-name-the-id-name-is-not-written-on-the-element-of-the-tree-panel/6397>\
**Category:** General\
**Created:** [March 16, 2022, 12:37pm UTC](https://forum.pinegrow.com/t/class-and-id-but-when-i-write-name-id-name-the-id-name-is-not-written-on-the-element-of-the-tree-panel/6397 "2022-03-16T12:37:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexseo](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@alexseo](https://forum.pinegrow.com/u/alexseo)\
**Post date:** [March 16, 2022, 12:37pm UTC](https://forum.pinegrow.com/t/class-and-id-but-when-i-write-name-id-name-the-id-name-is-not-written-on-the-element-of-the-tree-panel/6397/1 "2022-03-16T12:37:23Z")

</div>

Hi,

 ![스크린샷 2022-03-16 오후 9.33.09](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/6/66673619025e0b95e1c7636e3313d03c014df5ad.png)  
 ![스크린샷 2022-03-16 오후 9.33.21](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/5/5a26a5eda0619a26f1ebd5c7d83c256abca80cb4.png)  
Uploading: 스크린샷 2022-03-16 오후 9.33.31.png…

When I write a class name, the class name is written in both tree panel and style.css .

But when I write # name; id name, the id name is not written on the element of the tree panel.

How can I fix it ?

Thanks.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [March 16, 2022, 1:22pm UTC](https://forum.pinegrow.com/t/class-and-id-but-when-i-write-name-id-name-the-id-name-is-not-written-on-the-element-of-the-tree-panel/6397/2 "2022-03-16T13:22:05Z")

</div>

Hi @alexseo,  
The style panel can add class names, but it won’t add any other attributes. In order to add an id or other attribute to an element you need to use the Property panel.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/0e2ee06ef08addb8e79f9db5660a352ed44121d0.png)  
You can also use the property panel to add classes to elements without creating a new CSS rule.  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![alexseo](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@alexseo](https://forum.pinegrow.com/u/alexseo)\
**Post date:** [March 26, 2022, 12:41am UTC](https://forum.pinegrow.com/t/class-and-id-but-when-i-write-name-id-name-the-id-name-is-not-written-on-the-element-of-the-tree-panel/6397/3 "2022-03-26T00:41:47Z")

</div>

Thank you very much  
It helps me a lot.
