John Hebert Trindade Posted February 15, 2021 at 06:09 PM Report Share #621346 Posted February 15, 2021 at 06:09 PM 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 comment Share on other sites More sharing options...
Solution AshKetshup Posted February 18, 2021 at 11:46 PM Solution Report Share #621397 Posted February 18, 2021 at 11:46 PM Boas @John Hebert Trindade, Acredito que seja do facto de teres as tags </section> e </nav> trocadas. Espero ter ajudado. Mas façam o que fizerem nunca façam: sudo apt remove python Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now