登录 | 注册 | FAQ
Anonymous

Active link

+ 发表回复

4 篇帖子 分页: 1 / 1


Active link

Marsha Daryabeigi » 周二 4月 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>
头像

Marsha Daryabeigi

  • 帖子: 29
  • 注册: 周一 12月 08, 2014 5:40 pm

Re: Active link

Veeramanikandan » 周三 4月 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;
}
头像

Veeramanikandan

  • 帖子: 20
  • 注册: 周一 9月 22, 2014 4:03 pm

Re: Active link

emily008 » 周三 10月 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.
头像

emily008

  • 帖子: 8
  • 注册: 周三 10月 07, 2015 6:29 am
  • 地址: London
--
For more visit HTML Tutorial

Re: Active link

Farhin Qureshi » 周五 1月 06, 2017 11:14 am

Hi,

代码: 全选
.link a:active
{
       color:white;
}

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

thanks.
头像

Farhin Qureshi

  • 帖子: 45
  • 注册: 周二 1月 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ 发表回复

分页: 1 / 1