Note that there are some explanatory texts on larger screens.

plurals
  1. POWeird CSS/Nav Blank Space
    text
    copied!<p>Hello stack overflow community we meet again. I create this two leveled Navigation bar with CSS and i got everything to work but for one little issue, there a blank space that i can't seem to get rid of</p> <p>Here is the Html</p> <pre><code>&lt;ul id="nav-top"&gt; &lt;li&gt;&lt;a href="default.asp"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="news.asp"&gt;News&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contact.asp"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="about.asp"&gt;Join TGA&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;img src="wp-content/themes/tga/pictures/topbanner.jpg" id="top-banner" /&gt; &lt;div id="header"&gt; &lt;ul id="nav-bottom"&gt; &lt;li&gt;&lt;a href="#"&gt;Percoidei&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Remoras&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Tilefishes&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Bluefishes&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Tigerfishes&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Anabantoidei&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Climbing perches&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Labyrinthfishes&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Kissing gouramis&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Pike-heads&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Giant gouramis&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; </code></pre> <p>And here is the CSS</p> <pre><code>#nav-bottom{ list-style-type:none; height: 34px; margin:0; padding:0; overflow:hidden; background-image: url(pictures/nav-graphic.png); line-height: 2; } #nav-bottom li:hover { list-style-type:none; height: 34px; margin:0; padding:0; overflow:hidden; line-height: 2; background-color: #494949; color: white; } #nav-bottom li{ float:left; } #nav-bottom a{ display:block; width:100px; text-decoration: none; color: black; } #nav-bottom li ul { position: absolute; width: 10em; left: -999em; list-style-type:none; background-color: #494949; color: white; } #nav-bottom li ul li a { color: white; width: 10em; border-bottom:1px solid white; } #nav-bottom li ul li a:hover { color: white; width: 10em; background-color: #2a2a2a; text-align: left; border-bottom:1px solid white; } #nav-bottom li:hover ul { left: auto; } </code></pre> <p>Here is what it looks like</p> <p>look at link bellow (sorry don't have the rep points to upload the picture)</p> <p>What am i doing wrong that causing that blank space?</p> <hr> <p>Ok here is the blank space i'm talking about <a href="http://i52.tinypic.com/dcsg9j.png" rel="nofollow">http://i52.tinypic.com/dcsg9j.png</a></p> <p>And I uploaded it to jsfiddle (cool dev site love it) and it works fine in there, do you think is a problem with my browser (chrome 14.0.835.163 running on mac) it also does the blank space in firefox? <a href="http://jsfiddle.net/donvito101/ZWeVq/" rel="nofollow">http://jsfiddle.net/donvito101/ZWeVq/</a></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