Changing the background colour on the over state of a button

Posted on 2006-05-27
Last Modified: 2010-04-07
Hi all,
I know this is a fairly simple question, just can't seem to figure out how to do it. On the page ( I have an "Add Your Comment" button. When I scroll over it, the background colour changes to an ugly green by default! Where do I control this property from?
Question by:dereksheahan
    LVL 30

    Expert Comment

    locate this
    #Layer3 {
          background-color: #448BBF;

    and change your background color
    LVL 70

    Accepted Solution


    The "Add Your Comment" is a regular text link and thus is controlled by the A stuff in the stylesheet:

    A { text-decoration:none;}
    A:link      {color:blue;}
    A:visited{color: blue;}
    A:hover      {color: red;background-color:#66ffff;}

    Change the a:hover property to fix the bg color.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
    I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now