html - Can't get navigation bar to display horizontally -


i'm trying navigation bar display horizontally, i'm not able to.

here code:

<div class="theheader">         <h1><a href="#">my name</a></h1>         <ul id="nav">             <li><a href="#">home</a></li>             <li><a href="#">about</a></li>             <li><a href="#">contact</a></li>         </ul>         <ul id="subscribe">             <li class="facebook"><a href="#">follow on facebook</a></li>             <li class="rss"><a href="#">subscribe rss</a></li>         </ul> 

css:

#theheader {     width: 961px; margin: 0 auto; position: relative;     overflow: hidden; }     #theheader h1 {         position: absolute; top: 5px; left: 376px;display: block; width: 208px; height: 213px;          background: url(images/welcome.png); text-indent: -9999px;     }         #theheader h1 a:hover {             background-position: bottom;         }      #theheader ul#nav {         float: left; margin: 22px 0 0 24px; list-style: none;     }         #theheader ul#nav li {             float: left; margin: 0 0 0 45px;         }             #theheader ul#nav li:first-child {                 margin: 0;             }                 #theheader ul#nav li {                     display: block; font: 13px georgia, serif; letter-spacing: 2px; color: #eeede6;                     text-decoration: none;                 }                     #theheader ul#nav li a:hover {                         color: #d0cfc8;                     }      #theheader ul#subscribe {         float: right; margin: 22px 24px 0 0; list-style: none;     }         #theheader ul#subscribe li {             float: left; margin: 0 0 0 32px;         }             #theheader ul#subscribe li {                 display: block; height: 16px; font: 13px georgia, serif; letter-spacing: 2px; color: #eeede6;                 text-decoration: none; padding: 1px 0 0 27px;                 background: url(images/icons.png) left 1px no-repeat;             }                 #theheader ul#subscribe li.rss {                     background-position: left -16px;                 }                     #theheader ul#subscribe li a:hover {                         color: #d0cfc8;                     } 

http://jsfiddle.net/5ava8/85/

i wanted navigation bar this:

http://line25.com/wp-content/uploads/2010/blog-design-coded/demo/index.html#

you need change the

<div class="theheader"> 

to

<div id="theheader"> 

because specified id , not class div element.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -