Code Snippet posted by:
Ranjeet_8 | Posted on: 10/31/2012 | Category:
CSS Codes | Views: 270 | Status:
[Member] |
Points: 40
|
Alert Moderator
#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>