Css for Grouping Selectors

Ranjeet_8
Posted by Ranjeet_8 under CSS 3 category on | Points: 40 | Views : 1002
#How to use grouping selectors?
CSS

<style type="text/css">
p
{
color: White;
}
.DVcontent, h1, h2
{
background-color: Black;
}
</style>

Design page

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

Comments or Responses

Login to post response