mikemalphurs
03-04-2008, 07:56 PM
Hello-
I have a CSS text mark-up issue I could use some help with. I have a Div Tag that has a "p" tag applied to it. Whnever I try to create an additional class to use for the p tag within that DIV, it does not "take". Is there anyway to have a Class over-ride the P tag applied to the DIV?
Here is the DIV:
<div class="InteriorText">
<p>When it comes to technology, have you ever noticed that there is always something that someone doesn't want you to buy?</p></div>
Here is the DIV's CSS:
.InteriorText p{
color: #666666;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.8em;
}
Here is the class I would like to apply to certain P tags within the same DIV, but is being "overridden" by the above CSS:
.ContentSubHead {
font-size: 2.0em;
font-weight: bold;
}
And finally, the HTML code snippet:
<div class="InteriorText">
<p class="_ContentSubHead">When it comes to technology, have you ever noticed that there is always something that someone doesn't want you to buy? </p></div>
Any help would be greatly appreciated... Thanks!
I have a CSS text mark-up issue I could use some help with. I have a Div Tag that has a "p" tag applied to it. Whnever I try to create an additional class to use for the p tag within that DIV, it does not "take". Is there anyway to have a Class over-ride the P tag applied to the DIV?
Here is the DIV:
<div class="InteriorText">
<p>When it comes to technology, have you ever noticed that there is always something that someone doesn't want you to buy?</p></div>
Here is the DIV's CSS:
.InteriorText p{
color: #666666;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.8em;
}
Here is the class I would like to apply to certain P tags within the same DIV, but is being "overridden" by the above CSS:
.ContentSubHead {
font-size: 2.0em;
font-weight: bold;
}
And finally, the HTML code snippet:
<div class="InteriorText">
<p class="_ContentSubHead">When it comes to technology, have you ever noticed that there is always something that someone doesn't want you to buy? </p></div>
Any help would be greatly appreciated... Thanks!