Could anyone explain how the link is combined with the image in this site?

Multi tool use
Multi tool use


Could anyone explain how the link is combined with the image in this site?



Normally, when we want to add some url link to a image, we simply put that image inside a element.



However, I just found that in this page:
https://uk.burberry.com/mens-trench-coats/



The link of each coat is separated from the image. However, when the mouse is put on the coat image, we can still detect the link.



Could anyone explain how does this work?




1 Answer
1



The link on the page you mentioned is position: absolute; and "moved" over the actuall image which is indeed placed in an other element.


position: absolute;



https://developer.mozilla.org/en-US/docs/Web/CSS/position






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

WZyWn2TlJGbtJujwQifiXj8ynlldFuYVtqOz 3ca6ZQnMzRw,9UT7B 7a5UHVGFhb3MD6U
0RjNBWk rJO8yD2oEqkLkEC1g PT

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications