# Image header depending on the category/tab

**URL:** <https://meta.discourse.org/t/image-header-depending-on-the-category-tab/25605>\
**Category:** Marketplace\
**Created:** [24. Februar 2015 um 12:42 UTC](https://meta.discourse.org/t/image-header-depending-on-the-category-tab/25605 "2015-02-24T12:42:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sigurdur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sigurdur/32/122516_2.png) [@sigurdur](https://meta.discourse.org/u/sigurdur)\
**Post date:** [24. Februar 2015 um 15:15 UTC](https://meta.discourse.org/t/image-header-depending-on-the-category-tab/25605/2 "2015-02-24T15:15:02Z")

</div>

This is pretty cool …

The way they do it is by adding CSS to their site.

They tie the image to the body as a background image.

They use this css as base  
[https://hairxhub.com/hair-talk-forum-css/style.css](https://hairxhub.com/hair-talk-forum-css/style.css)

Then they add custom CSS for each of their categories to display a different image..  
(or in CSS terms)

```
body.category-hairstyles { background-image: url(/some-image.jpg); }

```

So if you’re comfortable with CSS, you can hack this on your own 😉

---

_[View the full topic](https://meta.discourse.org/t/image-header-depending-on-the-category-tab/25605)._
