CSS Problem: Sub-Classes Being Overridden

Soldato
Joined
12 Dec 2003
Posts
2,588
I'm trying to edit a Joomla template that someone else wrote to include some new CSS classes for a page I made, but some of the elements in my new classes get overridden by previous classes.

This is what firebug looks like:
CLICK ME

As you can see, my margin; 0 from the section-people-photo-pic class is crossed out and overridden by the art-article img class (useing firebug to disable that margin: 1em makes everything align properly).

How can I force the margin: 0 for images with the class section-people-photo-pic while maintaining the margin: 1em for images in the rest of the articles?
 
Cant test it from here but will try it tomorrow, should I use that as well as putting the class in the <img> tag or instead?
Whats the difference between img.section-people-photo-pic and .section-people-photo-pic img?
 
Back
Top Bottom