The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Clickable div
Hi, how can I make the divs clickable? I have tried to add a tag before the div but it does not work in my grid layout.
https://codepen.io/Jedik/pen/GQbgxB
Omar
When you click them what do you want them to do?
All items are “clickable” it’s just that nothing happens (generally) when you do.
If you want an ACTION/EVENT to take place you’ll need Javasctipt.
If you want to GO TO ANOTHER page you need a LINK. In that case, you don’t need to use divs at all in your grid…just links.
Like so
https://codepen.io/Paulie-D/pen/OQeaog
Thank you Paulie_D. That’s what I needed.