CSS for Nesting Selectors

Ranjeet_8
Posted by Ranjeet_8 under CSS 3 category on | Points: 40 | Views : 983
# how to use CSS Nesting Selectors?
CSS

<style type="text/css">
p
{
color: Red;
}
.DVcontent
{
background-color: Black;
}
.DVcontent p
{
color: white;
}
</style>

Design page

<p>
To learn more about ASP.NET visit www.dotnetfunda.com
</p>
<div class="DVcontent">
<p>
To learn more about ASP.NET visit www.dotnetfunda.com
</p>
</div>

Comments or Responses

Login to post response