using jquery and css for dynamic creation of element