a tag properties

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ansuiya
    New Member
    • Jan 2007
    • 40

    a tag properties

    Hi all

    I want that the color of the link should remain when we click on that link (Active) as of the hover color. Suppose links are of blue color and when we hover then the color will be red and if we click on that link it should remain red and the others will still blue.

    I used :active but it does not work properly, :visited we can't use as all the links we click will be red.

    Please let me know the options we can use.

    thanx
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You can't use the tools for that purpose so I can't think of any other way.

    Comment

    • nanaveraa
      New Member
      • May 2008
      • 9

      #3
      Hi frnd
      You'll use a:hover in css. For example a{color:blue;} a:hover{color:r ed;}
      Try the way Best Wishes
      Originally posted by Ansuiya
      Hi all

      I want that the color of the link should remain when we click on that link (Active) as of the hover color. Suppose links are of blue color and when we hover then the color will be red and if we click on that link it should remain red and the others will still blue.

      I used :active but it does not work properly, :visited we can't use as all the links we click will be red.

      Please let me know the options we can use.

      thanx

      Comment

      • Death Slaught
        Top Contributor
        • Aug 2007
        • 1137

        #4
        If you want the link to remain a constant color no matter what then just use this:

        [CODE=css] a {
        color:#000;
        }
        [/CODE]

        Thanks,
        {\_/}
        (' . ')
        (")[DEATH](")
        (")(")

        Comment

        • Death Slaught
          Top Contributor
          • Aug 2007
          • 1137

          #5
          Originally posted by nanaveraa
          Hi frnd
          You'll use a:hover in css. For example a{color:blue;} a:hover{color:r ed;}
          Try the way Best Wishes
          Nanaveraa please do not shorten words while responding or posting in a thread.

          Thanks,
          {\_/}
          (' . ')
          (")[DEATH](")
          (")(")

          Comment

          • harshmaul
            Recognized Expert Contributor
            • Jul 2007
            • 490

            #6
            continuing from death....

            underlying anchor tags
            Code:
            a{
            color:#ff0000;
            }
            when anchors are hovered over
            Code:
            a:hover{
            color:#ff0000;
            }
            when you've been to the page a achor points to
            Code:
            a:visited{
            color:#ff0000;
            }
            one that is waiting for the page or service it points to, to responsd
            Code:
            a:active{
            color:#ff0000;
            }

            Comment

            • Death Slaught
              Top Contributor
              • Aug 2007
              • 1137

              #7
              Isn't there a technical name for them psuedo something right?

              Thanks,
              {\_/}
              (' . ')
              (")[DEATH](")
              (")(")

              Comment

              • harshmaul
                Recognized Expert Contributor
                • Jul 2007
                • 490

                #8
                yep....

                W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

                Comment

                • Death Slaught
                  Top Contributor
                  • Aug 2007
                  • 1137

                  #9
                  Just couldn't remember that second word (classes *inserts into brain*).


                  Thanks,
                  {\_/}
                  (' . ')
                  (")[DEATH](")
                  (")(")

                  Comment

                  Working...