J.Brooker J.Brooker - 1 year ago 94
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?

Answer Source


img.cardoption {width:20px;}

Remove =

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download