Jump to content

Formatação


John Hebert Trindade

Recommended Posts

John Hebert Trindade

Boa tarde pessoal.

Estou formatando com css um menu de um site, o problema é que com a função hover funciona, mas quando coloco numa classe active não, o que pode estar errado.

 

Arquivo css
nav#menu li:hover{
	background-position:top;
    color:firebrick;
}

nav#menu ul li a.active{
	background-position:top;
    color:firebrick;
}

 

arquivo html
  <nav id="menu">
    <section>
      <ul>
        <li> <a href='index.php' class='active'> Inicio</a></li>
        <li> <a href='artista.php' > Artista</a></li>
        <li> <a href='comments.php' > Comentários</a></li>
        <li> <a href='contactos.php' > Contactos</a></li>
      </ul>
      </nav>
    </section>

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.