troubleshooting Question

Make the entire CSS button surface clickable?

Avatar of sandshakimi
sandshakimiFlag for United States of America asked on
5 Comments2 Solutions1390 ViewsLast Modified:
Here's my class for the CSS button. The problem is that the mouse has to hover over the type to get the link, I want the visitor to hover over any of the button surface.

<div class="buttonSidebar"><a href="" target="_new">Google</a></div>

Here's my style

                  /*float: left;*/
                  font-family:Arial, Helvetica, sans-serif;
                  border-top: 1px solid #CCC;
                     border-right: 1px solid #706d6d;
                     border-bottom: 1px solid #706d6d;
                  width: 120px;
                  font-size: 1em;
                  text-align: center;
                     margin-top: -5px;
            .buttonSidebar a
Jagadishwor Dulal
Senior Web Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros