views:

10

answers:

1

I saw at this page that I can use CSS to change my button as it get focused. But trying with the following code in the CSS didn't work:

button:focus {
    style.width='200px';
}

Any idea why it isn't working?

A: 

try this:

button:hover { 
  width: 200px;
}
jcubic
it's very difficult when there are no "compile error message".. :)
Tom Brito