html - image tag within anchor tag issue -


 <a id="m-tag" onclick="return false;" href="#">   <img title="tagit" style="width: 20%;     padding-top: 0px;" alt="tags" src="/images/spacer.gif">  </a>  #m-tag{ background-image:url('images/menu-buttons.png'); width:204px;height:21px; padding-top:0px; } #m-tag  {background-position:0px -75px;} 

enter image description here

whats happening anchor tag 25px height. moreover, when in debugger tools in ie image occupies whole bunch of space. empty. @ bottom of image 25px above end of image space see image. image not start @ top. upload description in imagedescription

what see text "this sdfds..." correct. when f12 on ie , click on anchor tag takes me bottom image. if click on image tag within anchor tag highlights empty white space , image.

i want image start @ top. ideally expect see image "this..." "qqq..sfds" in white space. how it?

spacer gif small 1 x 1 dimension image.

if confusing , need more explanation, please ask. thanks


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -