Jump to content

[Resolvido] Links

Recommended Posts


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?

Share this post

Link to post
Share on other sites

Eu nao gosto muito do w3schools ... mas nao ha duvida que e pratico :)


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 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!

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.

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.