As someone who is not very experienced with HTML and CSS, I have a question...
I am unsure of the correct terminology, but in the example below, how can I apply CSS to style ONLY the paragraph tags within each element? For instance, how would I write CSS to float only
paragraphs within wrapper>content to the left
and
paragraphs within wrapper>sideContent to the right? All other paragraphs should remain unaffected.
<div id="wrapper">
<div id="content">
<p>lorem ipsum...</p>
</div>
<div id="sideContent">
<p>lorem ipsum...</p>
</div>
<div>
<p>lorem ipsum...</p>
</div>
</div>
I'm not sure if this is correct, but is something like this acceptable?
#wrapper #content p
{
float: left;
}
#wrapper #sideContent p
{
float: right;
}
By the way, what is this method called?