S
S
Sergey Titov2015-11-04 04:32:53
css
Sergey Titov, 2015-11-04 04:32:53

How can I prevent a block inside a link from following the link?

In short, there is a block - just imagine a 220x100 block, for example, this block is wrapped in a - a link, inside this block in the upper right corner I placed another block - a bookmark button, how to make it so that when you click on bookmark (on this block) did not follow the link?
jsfiddle.net/8wrquam4/1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ravshan Abdulaev, 2015-11-04
@Nuboskill

jsfiddle.net/8wrquam4/2
rtfm: api.jquery.com/event.preventdefault

Z
zooks, 2015-11-04
@zooks

Убрать атрибут href у тега-обертки.

X
xmoonlight, 2015-11-04
@xmoonlight

может z-index внутреннего блока увеличить?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question