virafh
asked on
Html div anchor tag
Dear Experts,
I have one division in my html page and i have given a background image in css now i want to put anchor tag on bg image how its possible please tell me
I have one division in my html page and i have given a background image in css now i want to put anchor tag on bg image how its possible please tell me
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<a href="#yourdividhere">Any content</a>
ASKER
the above example not work for me.see my code
<div class="icon">
<div class="no">
<a runat="server" id="aInbox" href="../inbox.aspx"></a>
</div>
</div>
<div class="icon">
<div class="no">
<a runat="server" id="aInbox" href="../inbox.aspx"></a>
</div>
</div>
Hi tried this?
<style>
div.no a {
width: 208px;
display: block;
background: url(images/your_logo.png) no-repeat;
height: 80px;
position: relative;
z-index: 100;
}
</style>
<div class="icon">
<div class="no">
<a runat="server" id="aInbox" href="../inbox.aspx"></a>
</div>
</div>
Otherwise gimme the link. i ll try to fix that problem...
<style>
div.no a {
width: 208px;
display: block;
background: url(images/your_logo.png) no-repeat;
height: 80px;
position: relative;
z-index: 100;
}
</style>
<div class="icon">
<div class="no">
<a runat="server" id="aInbox" href="../inbox.aspx"></a>
</div>
</div>
Otherwise gimme the link. i ll try to fix that problem...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"Please delete this question i got the answer from experts."
"i got the answer from experts"
That's the way Expert's Exchange works. I don't understand why you would want to delete the question. If someone provided your solution in this thread, you should accept the comment as the solution and award points.
"i got the answer from experts"
That's the way Expert's Exchange works. I don't understand why you would want to delete the question. If someone provided your solution in this thread, you should accept the comment as the solution and award points.
I don't know why you want to delete the question. Experts exchange is one of the famous forum. I cant believe this.
If someone answer is correct they have to award point. Why deletion happening here...
We can use like this also
<style>
div.logo a {
width: 208px;
display: block;
background: url(images/your_logo.png) no-repeat;
height: 80px;
position: relative;
z-index: 100;
}
</style>
<div class="logo">
<a href="index.php" title="example.com"></a>
</div>