How do I apply a css property to everything inside an element.
Like if I have:
p
{
font:15px "Lucida Grande", Arial, sans-serif;
padding-right:150px;
}
<p>
<span>
<div>
</div>
</span>
</p>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You posted invalid HTML. Block-level elements such as
<div>do not go inside of<p>tags, and especially not inside of inline elements such as a<span>.Anyway, the CSS selector to match anything is *
Be careful using the * selector. It is “slow” when there are a lot of elements to match.