Note that there are some explanatory texts on larger screens.

plurals
  1. POMenubar displays properly on Safari, but it's messed up on Chrome and Firefox
    text
    copied!<p>I'm working on a menu bar for a website but I've encountered a very weird but, and I just cannot fix it. It've spent an hour or more just working under this issue, to no effect :( The menu contains 5 links, I used a combination of unordered list and float:left links. Everything looks perfect in Safari, but in Firefox and Chrome the last link is displayed lower, as if there was a line break. I can't really use the position:absolute, because the menu is inside a container with width of 1255 pixels. Please, can someone tell me what on earth may cause the link to be displayed lower? Any ideas?<br> I tried deleting other components of the page and that didn't change anything, so I'm pretty sure it has to be something here:</p> <p>Css:</p> <pre><code>div.menu { height: 60px; background-image: url('2r/menu.png'); margin-bottom: 10px; } ul.menu { padding: 18px 0px 0px 0px; margin: 0; } ul.menu li { display: inline; list-style-type: none; } a.menuitem:link { float: left; display: block; padding: 0px 52px 0px 52px; color: #1e0c00; text-decoration: none; font-size: 22px; transition: background-color 0.4s, opacity 1.5s; -moz-transition: background-color 0.4s, opacity 1.5s; -webkit-transition: background-color 0.4s, opacity 1.5s; -o-transition: background-color 0.4s, opacity 1.5s; } a.menuitem:visited { color: #1e0c00; text-decoration: none; font-size: 22px; } a.menuitem:hover { color: #441b00; text-decoration: none; font-size: 22px; background-color: #ffdfb6; opacity: 0.6; } a.menuitem:active { color: #441b00; text-decoration: none; font-size: 22px; } </code></pre> <p>html: </p> <pre><code>&lt;div class="menu"&gt; &lt;ul class="menu"&gt; &lt;li&gt;&lt;a class="menuitem" href="index.html"&gt;Xxxxxx&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="menuitem" href="Xxxxxxx.html"&gt;Xxxxxxx Xxxxxxxxx&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="menuitem" href="Xxxxxxxxx.html"&gt;Xxxxxxxxx&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="menuitem" href="Xxxxxxxx.html"&gt;Xxxxxx Xxxxxxxx&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="menuitem" href="Xxxx.html"&gt;Xxxxxxxxxx Xxxxxxxxx&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Thank you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload