# Hiding Brand Header still leaves blank space?

**URL:** https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665
**Category:** Development
**Tags:** css, brand-header
**Created:** [June 2, 2020, 1:35pm UTC](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665 "2020-06-02T13:35:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sophspages](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sophspages](https://meta.discourse.org/u/sophspages)
#### Post date: [June 2, 2020, 1:35pm UTC](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665/1 "2020-06-02T13:35:21Z")

</div>

Thank you for this great component!

I don’t want it to show to non logged in users so I have added this in the CSS of the component:

```plaintext
.b-header {
  display: block;
}

.anon .b-header {
  display: none;
} 

```

It works but it still takes space here:

> **[lvrsnfrnds.com](https://us.lvrsnfrnds.com)**
>
> This domain may be for sale!

Do you know what I should do?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [June 3, 2020, 11:40am UTC](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665/2 "2020-06-03T11:40:59Z")

</div>

Add the below CSS to remove the blank space.

```css
.anon .ember-application .d-header {
  margin-top: 0;
}

```

---

<div class="post-metadata">

### Author: ![sophspages](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sophspages](https://meta.discourse.org/u/sophspages)
#### Post date: [June 7, 2020, 1:09pm UTC](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665/3 "2020-06-07T13:09:40Z")

</div>

> [@vinothkannans](#):
>
> ```plaintext
> .anon .ember-application .d-header {
> margin-top: 0;
> }
> 
> ```

Wow thank you sooooo much Vinoth!! It looks great! [Tada](https://us.lvrsnfrnds.com)!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 18, 2024, 11:42pm UTC](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665/4 "2024-06-18T23:42:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
