# Domanda CSS: banner sulla pagina iniziale

**URL:** https://meta.discourse.org/t/css-question-banner-on-starting-page/65173
**Category:** Support
**Created:** [27 Giugno 2017, 7:45am UTC](https://meta.discourse.org/t/css-question-banner-on-starting-page/65173 "2017-06-27T07:45:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lostintime](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lostintime/32/54115_2.png) [@lostintime](https://meta.discourse.org/u/lostintime)
#### Post date: [27 Giugno 2017, 7:45am UTC](https://meta.discourse.org/t/css-question-banner-on-starting-page/65173/1 "2017-06-27T07:45:04Z")

</div>

Hi everyone,

I have a banner for new visitors on the front page of my community.

This is the CSS I have under “Desktop”:

```
body[class*="category-"] #banner {
    display: none;
}

 #banner { /* white background */
    
    background-color: rgb(255, 255, 255);
    background-image: url("/uploads/db6165/original/1X/daab75c27e6811c862d2b159c97e934e93b33c9e.png");
    background-repeat: no-repeat;
    padding-left: 520px;
 }

```

Now the thing is that the banner image gets split in two, so that the top half shows above the extra menu I have at the top (the dark blue area) as can be seen in this screenshot:

 ![](https://global.discourse-cdn.com/meta/original/3X/6/0/606b9d9c4ad0d39733b7ca72278f3de116f0cb26.png)

Does anyone have any tipps as to how avoid this?

Thanks!  
Alexandra

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [27 Giugno 2017, 8:04am UTC](https://meta.discourse.org/t/css-question-banner-on-starting-page/65173/2 "2017-06-27T08:04:44Z")

</div>

hi @lostintime,

I tried to reproduce this but couldn’t. I think something else is the cause of your issue:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/3/538840b6f25ae61c429e20921518f0800dfa6a7c.png)

I suspect you have added a `<div id="banner"></div>` in your theme when you don’t need to, as this div will be automatically created when you pin a topic as a banner topic.

---

<div class="post-metadata">

### Author: ![lostintime](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lostintime/32/54115_2.png) [@lostintime](https://meta.discourse.org/u/lostintime)
#### Post date: [27 Giugno 2017, 8:24am UTC](https://meta.discourse.org/t/css-question-banner-on-starting-page/65173/3 "2017-06-27T08:24:44Z")

</div>

That’s brilliant, Joffrey, thanks!

There was indeed a “loose” `<div id="banner">` in my header CSS.  
Once I got rid of it, everything looked as it should 🙂

Thanks again!

---

<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 Giugno 2024, 12:44pm UTC](https://meta.discourse.org/t/css-question-banner-on-starting-page/65173/4 "2024-06-08T12:44:36Z")

</div>

Questo argomento è stato chiuso automaticamente dopo 2538 giorni. Non sono più consentite nuove risposte.
