|
I have been a bit confused lately...
<img src="http://www.webmaster-talk.com/images/e-1.jpg height="170" width="250" id="eimage" />
When I use this: #eimage { padding: 20px 30px 20px 30px; } it works.
<img src="http://www.webmaster-talk.com/images/e-1.jpg height="170" width="250" class="eimage" />
But it does not work as a Class, ex: .eimage { padding: 20px 30px 20px 30px; } Only this works as a class: .eimage {padding: 20px;}
Why is this? I would like to use it on multiple image elements, so I cannot use an ID.
|