tags:

views:

26

answers:

1

The following code works for the button, but not for the image:

button:focus {
    width:200px;
    height:200px;
    image.width:200px;
}

Is there a way to do it in CSS?

+2  A: 

A contained image would be part of the selector:

button:focus, button:focus img {
    width: 200px; height: 200px;
}
bobince