Jump to content
Th3Alchemist

[Resolvido] Menu dentro do header

Recommended Posts

Th3Alchemist

Boas!

Estou a tentar meter um menu dentro do header da página:



       <div id="topbar">
           <header>
               <a href="#" class="title">titulo</a>               
               <nav>
                   <ul>
                       <li><a href="#" class="current">Blog</a></li>
                       <li><a href="#">Works</a></li>
                       <li><a href="#">About</a></li>
                   </ul>
               </nav>
           </header>
       </div>
 

#topbar {
   width: 100%;
   height: 50px;
   position: fixed;
   color: whitesmoke;
   background-color: #73853c;
   box-shadow: 0 0 20px #73853c;
   z-index: 100;
}
header {
   margin: 0 auto;
   width: 1000px;
   height: 100%;
   display: block;
}
header a.title {
   font-size: 36px;
   font-weight: bold;
   color: whitesmoke;
   text-decoration: none;
   text-transform: lowercase;
   text-shadow:0px 0px 20px whitesmoke;
}
header nav {
   float: right;
   display: block;
}
header nav ul {
   list-style-type: none;
   margin: 0;
   padding: 0;
}
header nav ul li {
   float: left;
}
header nav ul li a {
   display: block;
   width: 100px;
   height: 50px;
   line-height: 45px;
   color: white;
}
header nav ul li a:link, header nav ul li a:visited {
   font-weight: bold;
   color: white;
   text-align: center;
   text-decoration: none;
   text-transform: lowercase;
}
header nav ul li a.current {
   background-color: #829744;
}
header nav ul li a:hover, header nav ul li a:hover {
   background-color: #91a84c;
   color: white;
}
 

Porém, o Chrome não gosta de tal coisa, mas no Firefox funciona bem. Quero no Chrome o mesmo resultado como no Firefox, como faço?

Chrome:

http://img20.imageshack.us/img20/5844/chromeb.png

Firefox:

http://img16.imageshack.us/img16/7301/firefoxblog.png

Share this post


Link to post
Share on other sites
Th3Alchemist

mete o

<a href="#" class="title">titulo</a>

depois do

<nav> ... </nav>

Funcionou bem!

Obrigado!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.