The button below is the end result. To see the width changing in action, copy and paste the above code into a new html file then run the file (it doesn't work while on blogger.com.