Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Infogrid – Hide when clicking outside the grid Re: Infogrid – Hide when clicking outside the grid

#126357
Paulie_D
Member

Well

Obviously you’ll need jQuery.

You could add a click function to the [body] that cycles through the divs with a class of ‘info-col’ and if one of them also has a class of cur-Col (if that’s applied) and remove it.

It would also need to reset the css changes made when the original div was clicked. Those will probably already been in the existing JS.

Unfortunately, jQ is still new to me so someone else will have to take over.

Might be an idea to put something in Codepen for us to play with.