The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to make whole DIV clickable?
I have an image, while hovering on image need to Show a div with background color white transperent with dummy text and button(horizontally and vertically center aligned) and the whole div should be clickable.
Exisitng structure: don’t change anything add markup.
http://codepen.io/kodegeek/pen/RRbgbg
Clickable to do what?
This sounds like you need Javascript not CSS
While clicking it will go to another page later I will add that, whole div should be in anchor tag and whithout javascript I required.
Hi Koder,
I am correct in understanding that you don’t want to change any of the markup and you also don’t want to use Javascript?
That makes it a little tricky to change the functionality.
CSS-tricks https://css-tricks.com/snippets/jquery/make-entire-div-clickable/