div inside a href tag

Posted by kc rajput on Stack Overflow See other posts from Stack Overflow or by kc rajput
Published on 2010-06-22T11:27:33Z Indexed on 2012/03/26 5:29 UTC
Read the original article Hit count: 107

Filed under:
|
|

i want to make a div click able and inside this i have another div and this also should be click able or link.

html is

 <a href="#"><div class="box">
    <div class="plus"><img src="aaa.jpg"/></div>
</div></a>

css

.box{
    float:left;
    width:100px;
    height:100px;
}
.plus{
    float:left;
    width:30px;
    height:30px;
}

can i make both divs to link and for different-different url.

and is this proper way use div inside a href ?

© Stack Overflow or respective owner

Related posts about html

Related posts about css