change width() to offsetWidth javascript function
add minimum style