necessary CSS and JS code to make div floating on a page