So I have html and css that looks like the following..
<div id="foo">
<p> Foo text </p>
<div id="bar">
<p> Bar text </p>
</div>
</div>
And then I have some css that looks like the following...
#foo p {
text-align:left;
font-family: helvetica, verdana, sans;
font-size: 14px;
color: #000000;
padding: 10px 10px 10px 10px;
margin: 0px 0px 0px 0px;
}
#bar p {
font-size: 12px;
color: #ffffff;
padding: 0px 0px 0px 0px;
}
So isn't the point of CSS to override the styles applied to the child from the parent foo? It's not doing this, I just get the child styles overridden by the parent. I'm clearly missing something big here, any help would be great.