Link to home
Start Free TrialLog in
Avatar of virafh
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
ASKER CERTIFIED SOLUTION
Avatar of techsathish
techsathish
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of rajeeshmca
rajeeshmca
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,
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>
Avatar of apexpert
apexpert

<a href="#yourdividhere">Any content</a>
Avatar of virafh

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>
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...
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"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 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...