Login | Iscriviti | FAQ
Anonymous

Active link

+ Rispondi al messaggio

4 messaggi Pagina 1 di 1


Active link

da Marsha Daryabeigi » mar apr 21, 2015 9:18 pm

I made a layout I just took out the part that does not work. The problem is when I click on "zucchini tomato" it suppose to have a darker back ground and red text but it stays like I hover over it with dotted line . It only change backbround and text color to active when I try to move the text. It works fine for another item why not for "zucchini tomato"
Here is the coding
<a class="two" href="#zuc"> Zuccini Tomato</a>
<style type="text/css">
a.two:link { color: brown;
text-decoration: none;
}

a.two:active {
color: red;
text-decoration: underline;
background-color:#C79999;
outline: maroon dotted;

}

a.two:hover {
color: #5C1700;
text-decoration: underline;
background-color:#FFE0CC; }
</style>
Avatar utente

Marsha Daryabeigi

  • Messaggi: 29
  • Iscritto il: lun dic 08, 2014 5:40 pm

Re: Active link

da Veeramanikandan » mer apr 29, 2015 12:23 pm

hi the a color default in blue from anger tag,
.two a:active {
color: red;
}
(or)
.two a:active {
color: red!important;
}
Avatar utente

Veeramanikandan

  • Messaggi: 20
  • Iscritto il: lun set 22, 2014 4:03 pm

Re: Active link

da emily008 » mer ott 07, 2015 6:58 am

I think so you have to see the CSS style for a{} anchor tag in the Style sheet and try to override it.
Avatar utente

emily008

  • Messaggi: 8
  • Iscritto il: mer ott 07, 2015 6:29 am
  • Località: London
--
For more visit HTML Tutorial

Re: Active link

da Farhin Qureshi » ven gen 06, 2017 11:14 am

Hi,

Codice: Seleziona tutto
.link a:active
{
       color:white;
}

Using this code whenever you visit the link the color will change to white.

thanks.
Avatar utente

Farhin Qureshi

  • Messaggi: 45
  • Iscritto il: mar gen 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Rispondi al messaggio

Pagina 1 di 1