# إضافة معرف (ID) أو فئة (CLASS) إلى صورة (ضمن منشور)

**URL:** <https://meta.discourse.org/t/add-an-id-or-class-to-an-image-within-a-post/114740>\
**Category:** Product Support\
**Created:** [11 أبريل 2019، 9:22ص UTC](https://meta.discourse.org/t/add-an-id-or-class-to-an-image-within-a-post/114740 "2019-04-11T09:22:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![DigitalStartup](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/digitalstartup/32/118242_2.png) [@DigitalStartup](https://meta.discourse.org/u/DigitalStartup)\
**Post date:** [11 أبريل 2019، 9:22ص UTC](https://meta.discourse.org/t/add-an-id-or-class-to-an-image-within-a-post/114740/1 "2019-04-11T09:22:53Z")

</div>

My goal is to add some banners to Not Logged In Users within a post. The CSS works great, but I can’t apply it to any images within the post.

Is there currently a way to add an ID or CLASS to an image (within a post)? So far I have tried:

```
![Title|690x85](/image.png#example)

```

And I’ve tried putting in raw HTML

```
<img id="example" src="image.png" alt="image" width="690" height="85">

```

Both methods result in the ID or CLASS being stripped out of the actual rendering of the page.

---

_[View the full topic](https://meta.discourse.org/t/add-an-id-or-class-to-an-image-within-a-post/114740)._
