# If Category Logo Image Too Wide - Hides content in 'Category' view

**URL:** <https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933>\
**Category:** Support\
**Created:** [9 Setembro , 2016 14:06 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933 "2016-09-09T14:06:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)\
**Post date:** [9 Setembro , 2016 14:06 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/1 "2016-09-09T14:06:05Z")

</div>

If the ratio and subsequently the width of the Category Logo Image is too wide, it hides all ‘latest posts’ on the right when in Category view.

 ![](https://global.discourse-cdn.com/meta/original/3X/c/3/c3034748fb1f8823ee077d8211ba202642ab9edb.png)

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [9 Setembro , 2016 14:15 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/2 "2016-09-09T14:15:02Z")

</div>

so don’t do that. 😉

---

<div class="post-metadata">

**Author:** ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)\
**Post date:** [9 Setembro , 2016 14:17 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/3 "2016-09-09T14:17:24Z")

</div>

Yeah I’ve changed it now, but what’s the limit? 🙂

There’s no guide or tooltip and it just breaks the homepage if I go over a magic width!

---

<div class="post-metadata">

**Author:** ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)\
**Post date:** [11 Dezembro , 2016 12:24 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/4 "2016-12-11T12:24:30Z")

</div>

###Issue

Finding that if the image is too wide it breaks the Categories/Latest view on an iPad (and of course if the browser is shrunk as per the OP).

###Cause

So what happens is if the `Category Logo Image` that you upload is wider than 260px (_when it displays_) and the ratio of the image allows it to be over that, the Latest list wraps around to the bottom of the Categories list. This image is only being limited by height.

###Solution

The `Category Logo Image` is **only being limited by height** (`max-height: 150px;`), but if we limit it by width to `260px` as well, we allow the iPad to show the Latest column right next to the Categories column.

```
//max width for category images in Category/Latest View to prevent wrapping of Latest
.category-logo {
    max-width: 260px;
}

```

I’ve only concluded this magic value of `260px` on a regular iPad Air retina display - other tablets may need other values?

---

<div class="post-metadata">

**Author:** ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)\
**Post date:** [11 Dezembro , 2016 15:15 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/5 "2016-12-11T15:15:21Z")

</div>

If you like big images for the category logo, can’t you do a :

```
.category-logo {
    float: none;
    max-width: 100%;
    display: block;
}

```

It would work as a banner and I think it would work with any tablet (I could try on my android tablet if you want)

---

<div class="post-metadata">

**Author:** ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)\
**Post date:** [11 Dezembro , 2016 23:28 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/6 "2016-12-11T23:28:05Z")

</div>

Yeah that’s what I was trying to get to!

Looks great on the iPad.

I got so fixated with trying to figure out the ‘allowed’ number of pixels in the width I didn’t bother thinking rationally.

---

<div class="post-metadata">

**Author:** ![sebastianh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sebastianh/32/40415_2.png) [@sebastianh](https://meta.discourse.org/u/sebastianh)\
**Post date:** [25 Maio , 2021 08:44 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/7 "2021-05-25T08:44:04Z")

</div>

Não consigo encontrar aquele outro tópico de suporte que tínhamos sobre o envolvimento de imagens de (sub)categorias. Com a nova atualização do Discourse, tudo está embaralhado agora, porque o texto não quebra mais a linha, veja  
por exemplo [Magazine - The Spaghetti Western Database Forum](https://forum.spaghetti-western.net/c/blog/23)

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [8 Junho , 2024 12:36 UTC](https://meta.discourse.org/t/if-category-logo-image-too-wide-hides-content-in-category-view/49933/8 "2024-06-08T12:36:49Z")

</div>

Este tópico foi automaticamente fechado após 2828 dias. Novas respostas não são mais permitidas.
