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


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.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages