troubleshooting Question

Applying Link using CSS only

Avatar of driven_13
driven_13 asked on
24 Comments2 Solutions328 ViewsLast Modified:
Hello all experts.

I was wondering if there was a way by which I could apply a link (A HREF) to a div or to an images using only CSS.

So for example, if there was a background image to a DIV, then if a person clicked inside that DIV, then they will be linked to the corresponding page.

Unfortunately, I cannot place an transparent image inside the DIV or have any content inside the DIV.

The linking has be happen, if at all possible, only via CSS.

Or, at the most, via some JavaScript, but that too is way beyond me...[:0(

Thanx in advance,

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 24 Comments.
Join the Community
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 24 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