S
S
Slava2018-02-21 00:08:13
css
Slava, 2018-02-21 00:08:13

How to link to the top of an image?

You need to add a few more links to the top of the picture, like . The heading is added normally, but as /a> only I add the link - the picture increases in the sizes. I can't understand what is the reason. Help!
Code
PS Pictures are wrapped in links for the image viewer plugin to work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Slava, 2018-02-21
@slava_pv

I put each link in a separate div and put what should pop up on hover in another div next to this link and set the div (adjacent to the link)position: absolute

P
Pavel Radkov, 2018-02-21
@paulradzkov

A link within a link is invalid code. The browser tries to fix the markup on its own and breaks the appearance.
You need to put additional links side by side, as sibling elements within a common parent element. When hovering over this parent, position additional links on top of the main image link.

A
Alexey, 2018-02-21
@Azperin

And the map tag won't work in this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question