vendredi 27 juin 2014

html css link into another link


Vote count:

-1




Here is my problem :


i try to add a "link" into another one... i explain : i have an image, which is INTO a link, so when i click anywhere on this image i'm redirected to the page i want... what i try to do is, to add a small "edit icon" at the top right corner of this image, so i can edit its properties on another page dedicated to this...


the fact is that i want to have this "edit icon" as a link, when i click on it i want to be redirected on another page, not the page which is the url of the main image container link...


so the code looks like this :



<a href...>
<span ... with style : size and background image so it looks like a clickable picture...>

<a href...>
<span... the second span with another background (edit icon), FLOAT RIGHT (to get it in the corner of the container span) and small sized...>
</span>
</a>

</span>

</a>


if i do things this way, the second block (edit icon) appears OUT OF the container... and if i change my order... it sometimes appears but it's not clickable... what am i doing wrong? is it impossible to make links into links? or is it a special way to do that?


thanks for help



asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire