extract css, hover function, auto positioning