php - Position absolute removes hyperlink from image. -
i've got next code:
<div style="position: absolute; margin-top: 48px; margin-left: 261px;"> <a href="http://www.somepage.com" target="_blank"> <?php $image_url='http://www.somepage.com/image.jpg'; ?> <img src="<?php echo $image_url;?>"> </a> </div>
the image displays , positions correctly , hyperlink works fine without "position: absolute" when it's included above link not work.
i'm no means php programmer or programmer matter. i'm missing obvious here? help extremely appreciated.
worken ---> it's working fine plenty tried on localhost also, there else thats causing problem
code:
<div style="position: absolute; margin-top: 48px; margin-left: 261px;"> <a href="http://www.somepage.com" target="_blank"> <img style = "border:1px solid black;" src="http://www.somepage.com/image.jpg"> </a> </div>
as side note:i find humorous links actual page
edit:
glad see have figured out tad, heres solution thought of:
#logo{ background-image:url(http://www.somepage.com/image.jpg); height:400px; width:40px; } <div style="position: absolute; margin-top: 48px; margin-left: 261px;"> <a href="http://www.somepage.com" target="_blank" id = "logo"> </a> </div>
php html css absolute
No comments:
Post a Comment