Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating a horizontal nav bar easily in a header
    primarykey
    data
    text
    <p>I have a certain Header with my Logo and title. Just to the right of the Title Mobility group I want to create a nav bar that touches the bottom of the header with different tabs all the way to the right of the header. Messing around I was able to create something, but I can't seem to position it correctly. </p> <ul> <li><a href="http://jsfiddle.net/jHJK2/" rel="nofollow">http://jsfiddle.net/jHJK2/</a></li> <li><a href="http://jsfiddle.net/jHJK2/embedded/result/" rel="nofollow">http://jsfiddle.net/jHJK2/embedded/result/</a></li> </ul> <p>I just can't figure out how to add this navigation bar to my header div.</p> <p><strong>HTML code</strong>:</p> <pre><code>&lt;div id="page"&gt; &lt;div id="header"&gt; &lt;a href="http://wireless.fm.intel.com/test/index.php"&gt; &lt;img src="http://wireless.fm.intel.com/test/logo2.png" border=0 &gt; &lt;/a&gt; &lt;h2&gt;&lt;a href="http://moss.ger.ith.intel.com/sites/MWG-IS/Pages/Default.aspx" border=0&gt;Mobility Group&lt;/a&gt;&lt;/h2&gt; &lt;div id="navigation"&gt; &lt;a href="#"&gt;About&lt;/a&gt; &lt;a href="#"&gt;Reports&lt;/a&gt; &lt;a href="#"&gt;Documents&lt;/a&gt; &lt;a href="#"&gt;Checklists&lt;/a&gt; &lt;a href="#"&gt;License Tools&lt;/a&gt; &lt;a href="#"&gt;Presentations&lt;/a&gt; &lt;a href="#"&gt;Software Releases&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="main"&gt;&lt;/div&gt; &lt;div id="footer"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>CSS Code</strong>:</p> <pre class="lang-css prettyprint-override"><code>html, body { padding:0; margin:0; height:100%; } #page { min-height:100%; position:relative; height:100%; } #header { background-color:#115EA2; height:100px; width:97.5; } #main { width:1300px; margin-left:auto; margin-right:auto; background-color:#F1F2F3; min-height:90%; height:auto; height:89%; margin:0 auto -50px; vertical-align:bottom; } #footer { position:fixed; width:100%; bottom:0; height:35px; background-color: #115EA2; } #header img { float:left; display:inline; } #header h2 { text-align:center; font-size:44px; color:#FFFFFF; left:0px; top:20px; font-weight:bold; font-family: Sans-serif; float:left; margin-top:20px; margin-left:20px; text-decoration:none; } #header h2, a, a:visited, a:hover, a:active { color: #FFFFFF; text-decoration: none; } </code></pre> <p><strong>Navigation Bar Code:</strong></p> <pre class="lang-css prettyprint-override"><code>#navigation { position:relative; top:0; left:0; right:0; bottom:0; width:70%; background-color:gray; color:green; height:35px; text-align:center; padding-top:15px; } #navigation a { font-size:14px; padding-left:15px; padding-right:15px; color:black; text-decoration:none; } #navigation a:hover { color:blue; } </code></pre> <h3>Update</h3> <p>Just wanted to say Thank you all for your help. </p>
    singulars
    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.
    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