Customisable div handling