# Category logo size on specific categories - only applied when accessed directly

**URL:** <https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032>\
**Category:** Bug\
**Created:** [April 2, 2024, 11:41am UTC](https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032 "2024-04-02T11:41:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)\
**Post date:** [April 2, 2024, 11:41am UTC](https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032/1 "2024-04-02T11:41:26Z")

</div>

For a specific category we added the following CSS to adjust the size of the category logo. But the CSS is only applied when you access the category through a link, see here:

[Contests - Forum | Cannabisanbauen.net](https://forum.cannabisanbauen.net/c/contests/116) (we run on 3.2 stable)

CSS (in Common):

```CSS
/* Contest Kategorie - category image for each contest subcat */
body[class^="category-contests"] {
@supports (--custom: property) {
.category-logo.aspect-image {
    --max-height: 250px;
}
.category-boxes .category-box .category-logo.aspect-image img, .category-boxes-with-topics .category-box .category-logo.aspect-image img {
    --height: 250px;
}
}
}

```

But when coming from another page on the forum, the CSS isn’t “triggered” and category logos are still the default size.

To reproduce:

1. go to [https://forum.cannabisanbauen.net/](https://forum.cannabisanbauen.net/)
2. Go to “Contests” category via sidebar or category picker
3. Category logos are default size

is that a bug or should we implement the CSS differently?

---

_[View the full topic](https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032)._
