0

Trying to get my one of my divs when clicked to call a function but it doesn't seem to be working???

I just noticed that only one solid pixel in the div border which i will eventually set to 0px calls the function but I want it so the whole div area calls it??

<div id="headersignup" onclick="signup();"></div>
#headersignup{
 position: absolute;
 top:0px;
 right: 30px;
 display:block;
 width: 60px;
 height: 30px;
 line-height: 30px;
 display: inline;
 vertical-align:middle;
 background: url(../pix/signup.png) no-repeat center;
 border: 1px solid #ff0000;
 margin: 0px 0px 0px 0px;
 padding: 0px 0px 0px 0px;
}

Edited by shadiadiph: Adding info

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by shadiadiph
0

I found a work around and changed it to an active link using a transparent png

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.