# Header bar got drunk on Firefox

**URL:** https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245
**Category:** Bug
**Created:** [2016年三月18日 01:52 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245 "2016-03-18T01:52:38Z")
**Posts on this page:** 17
**Page:** 1

<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: [2016年三月18日 01:52 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/1 "2016-03-18T01:52:38Z")

</div>

Since today on Firefox, when we scroll on a topic, the header bar has a weird alignment.

I’ve tried on Chrome to compare, and it works well.

 ![](https://global.discourse-cdn.com/meta/original/3X/e/b/eb6675270b1cde600069a0c700010e3ae1e78958.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年三月18日 02:02 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/2 "2016-03-18T02:02:26Z")

</div>

This is a topic for @neil

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年三月18日 02:08 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/3 "2016-03-18T02:08:02Z")

</div>

I can also repro on Mobile Safari, but the alignment is different.

 ![](https://global.discourse-cdn.com/meta/original/3X/a/0/a0bec16c5c35423a23ad65b3af892d5f406d4eac.jpeg)

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2016年三月18日 02:21 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/4 "2016-03-18T02:21:50Z")

</div>

FWIW On my end (mobile Safari) it seems the logo is crammed to the left.

 ![](https://global.discourse-cdn.com/meta/original/3X/d/9/d9f0e425f2da4331022201b2a8045673d7681af3.jpeg)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年三月18日 02:51 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/5 "2016-03-18T02:51:08Z")

</div>

> [@joebuhlig](#):
>
> FWIW On my end (mobile Safari) it seems the logo is crammed to the left.

This happens on Chrome on Android too (Moto X 2014 - Android 6.0)

---

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [2016年三月18日 03:00 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/6 "2016-03-18T03:00:06Z")

</div>

Yep, I got the same in Firefox, even here… It’s only when you’re scrolled a bit down inside a post…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月18日 03:30 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/7 "2016-03-18T03:30:55Z")

</div>

I reverted the change for now @neil

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月18日 04:14 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/8 "2016-03-18T04:14:58Z")

</div>

Closing this as change was reverted

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月18日 04:15 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/9 "2016-03-18T04:15:00Z")

</div>



---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2016年三月18日 14:54 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/10 "2016-03-18T14:54:12Z")

</div>



---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2016年三月18日 14:56 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/11 "2016-03-18T14:56:15Z")

</div>

Hmm. Well I tried! All the browsers and devices I had looked fine. I did forget Firefox though. Even IE10 and IE11 were consistent with webkit browsers. Firefox is the new IE confirmed.

Both flexbox and display: table have proven to be fragile solutions. I’m the second person to take 5 attempts at this now, so who volunteers to be next? 😛

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2016年三月18日 16:12 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/12 "2016-03-18T16:12:33Z")

</div>

What is the problem that you are trying to solve?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年三月18日 19:12 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/13 "2016-03-18T19:12:17Z")

</div>

Vertical centering of the logo in the header, also working with text-only logos.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2016年三月18日 19:45 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/14 "2016-03-18T19:45:46Z")

</div>

You can do it by setting the line-height on the `<a>` element that contains the logo to equal to the max-height of the logo. That should work for all cases except for when the logo max-height is changed in a customization.

```plaintext
<a class="logo-link" data-auto-route="true" href="/">
  <img id="site-logo" class="logo-big" src="https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/9/d/9d543e92b15b06924249654667a81441a55867eb.png" alt="Discourse Meta">
</a>

```

```css
a.logo-link {
    line-height: 40px;
}

```

I’ve reduced the size of the logo here and but it stays centered.

 ![](https://global.discourse-cdn.com/meta/original/3X/7/7/7740726be6ab407d2763acd39d047c0a091f1b91.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/9/a/9aa101eac230aca17f9626447e9cd175c787d792.png)

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [2016年三月18日 22:22 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/15 "2016-03-18T22:22:00Z")

</div>

I can’t repro this bug on my firefox broser, is the @simon solution the correct one?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月18日 22:22 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/16 "2016-03-18T22:22:52Z")

</div>

Yeah, that is what I did 🙂

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年三月18日 22:23 UTC](https://meta.discourse.org/t/header-bar-got-drunk-on-firefox/41245/17 "2016-03-18T22:23:14Z")

</div>


