J.Brooker J.Brooker - 11 months ago 69
HTML Question

HTML class not linking to internal CSS

img.cardoption {width=20px;}
<img class='cardoption' src='http://s32.postimg.org/9vao2t9kl/scc_std.png'/>

In this simple piece of HTML, and accompanying CSS, I have an image with class name 'cardoption'. In the style tag in the head, I have attempted to set the width of this image to 20px.

However, for some reason the image is not resizing. Can someone please explain why?



img.cardoption {width:20px;}

Remove =