Can someone help me out with a CSS issue that has been tripping me up? I've been working with CSS for three years now, and this particular problem is stumping me.
I have defined some styles in my CSS file that should be applied to the content of my webpage. In general, these CSS rules work fine, but there are exceptions like the "page_child_title" class. I always thought that if I specified a style further down in my CSS for specific classes, it would override earlier declarations. However, in this case, that doesn't seem to be true. When I use Firebug to inspect, it appears that my browser is using the font size CSS of ".page a" instead of the ".page_child_title" (which I definitely disagree with). The color from ".page_child_title" is being applied correctly though. Below, you'll find the HTML and CSS snippets I'm referring to.
HTML
<div id="page" class="page Jobs">
<div class="page_child">
<a class="page_child_title" ...
Style.css
.page p, .page ul, .page a {
font-size: 10px;
text-align: justify;
}
style.css (line 208)
.page_child_title {
color: #006633;
font-size: 12px;
}
style.css (line 262)
I've tried changing ".page_child_title" to ".Jobs a," but that didn't solve the issue. Then I attempted declaring ".page_child_title" before ".page a," but got the same result. Now, I'm at a loss. Does anyone have any insights into what might be causing this problem?