Jump to content


John Hebert Trindade
Go to solution Solved by AshKetshup,

Recommended Posts

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{

nav#menu ul li a.active{


arquivo html
  <nav id="menu">
        <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>


Link to comment
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.