A CSS fixing the layout on Firefox based on your solution: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;skarap&#x2F;15bf77d63fe596ee55ce" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;skarap&#x2F;15bf77d63fe596ee55ce</a> . Use Stylish (<a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;stylish&#x2F;" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;stylish&#x2F;</a>) to load it.