joaocasta Posted July 6, 2012 at 08:55 PM Report Share #467808 Posted July 6, 2012 at 08:55 PM Como é que faço para quando tenho um link e carrego nele, ele depois ficar com a mesma cor que tinha antes? tenho de usar over? ou algo assim? Link to comment Share on other sites More sharing options...
pmg Posted July 6, 2012 at 09:04 PM Report Share #467811 Posted July 6, 2012 at 09:04 PM (edited) Eu nao gosto muito do w3schools ... mas nao ha duvida que e pratico 🙂 http://www.w3schools.com/css/css_link.asp a:link {color:#FF0000;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#FF00FF;} /* mouse over link */ a:active {color:#0000FF;} /* selected link */ Em vez de usares cores diferentes, usa sempre a mesma cor e o mesmo background! Acho que a ordem e importante (o site especifica as regras) a:link { background-color: #cfd; color: #333; } a:visited { background-color: #cfd; color: #333; } a:hover { background-color: #cfd; color: #333; } a:active { background-color: #cfd; color: #333; } Edited July 6, 2012 at 09:12 PM by pmg What have you tried? Não respondo a dúvidas por PM A minha bola de cristal está para compor; deve ficar pronta para a semana. Torna os teus tópicos mais atractivos e legíveis usando a tag CODE para colorir o código! Link to comment Share on other sites More sharing options...
joaocasta Posted July 6, 2012 at 09:08 PM Author Report Share #467813 Posted July 6, 2012 at 09:08 PM Muito obrigado pmg 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