I'm having trouble setting a class to allow me to give images a border of 7 pixels

img.border7 {
border-width : 7;
}

Why is this not working with <img src="foo.jpg" class="border7" /> ?