Note that there are some explanatory texts on larger screens.

plurals
  1. PONavigation Bar positioning Elements
    primarykey
    data
    text
    <p>Hello this is the what I need to build: <a href="http://s1.directupload.net/file/d/3229/dcj752ty_jpg.htm" rel="nofollow">Mockup</a></p> <p>I stuck at the Navigation Bar, here is the CSS:</p> <p>/* CSS Document */</p> <pre><code>body {background:#fff url(bg.jpg) repeat-x; margin:0; padding:0; height:1800px; font- family:Arial, Helvetica, sans-serif;} #wrapper {width: 1000px; margin: 0 auto;} #header {height: 400px; width: 1000px; display: block; position: relative; } #header .logo {position: absolute; width: 374px; height: 221px; display: block; float: left; cursor: pointer; background: url(logo.png) 0 0 no-repeat transparent; top: 55px; left: 10px;} #header .contact-info {position: absolute; width: 293px; height: 133px; display: block; float: left; cursor: pointer; background: url(contact-info.png) 0 0 no-repeat transparent; top: 100px; left: 700px;} ul.mn { position: absolute; float: left; top: 316px; width: 316px; margin: 0; padding: 0; list-style-type: none; } ul.mn li { float: left; } ul.mn li a { display: block; float: left; height: 73px; margin-left: 6px; } ul.mn li a.mn1 { width: 104px; background-image: url('mn1.png'); background-position: 0 0; } ul.mn li a.mn2 { width: 212px; background-image: url('mn2.png'); } ul.mn li a.active, ul.mn li a:hover { background-position: 0 73px; } </code></pre> <p>And the HTML: </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;RW-Fliesen&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrapper"&gt; &lt;div id="header_wrapper"&gt; &lt;div id="header"&gt; &lt;a href="index.html" class="logo" title="Logo"&gt;&lt;/a&gt; &lt;div class="contact-info" title="contact-info"&gt;&lt;/div&gt; &lt;ul class="mn"&gt; &lt;li&gt;&lt;a href=" " title="" class="mn1 "&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=" " title="" class="mn2 "&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>When I have only one Navigation element looks all good: <a href="http://dh-creative-webdesign.de/rw-fliesen.html" rel="nofollow">Navi with only one element</a></p> <p>But when I add the second Navigation Element, the Navi looks like that: <a href="http://s1.directupload.net/file/d/3229/fsx9njxj_png.htm" rel="nofollow">Navi with more than one element</a></p> <p>How can we fix it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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