I'm currently working on creating a div that can be clicked as a whole, instead of just the text inside it. I've experimented with different methods, like the one mentioned here, but all it does is make the shapes disappear.
Here's what I have so far:
http://jsfiddle.net/n5xow3cd/2/
#productfooter {
width:100%;
max-width:500px;
height: 100px;
margin:0 auto;
}
#stern {
background:url('//cdn.shopify.com/s/files/1/0636/3475/t/16/assets/stern-blue-svg.svg?8854319133829452732')
no-repeat center;
background-size:100%;
text-align: center;
vertical-align: middle;
width: 165px;
height: 75px;
position:absolute;
display:table;
}
.sterntext {
z-index: 999;
position: relative;
height: 75px;
vertical-align: middle;
display: table-cell;
padding:0 7px;
}
#stern:hover {
background:url('//cdn.shopify.com/s/files/1/0636/3475/t/16/assets/stern-blue-filled-svg.svg?18364800561828232638')
no-repeat center;
color:#fff;
background-size:100%;
}
#stern a {
color:#000;
font-family:arial;
font-size:12pt;
}
#stern a:hover {
color:#fff;
}
Is there anything I need to change in order to make the entire #stern clickable, rather than just the text?
Any assistance would be greatly appreciated!