show-notice
hide-notice

Wednesday, 7 August 2013

CSS Class


Introduction:

In CSS, classes allow you to apply a style to a given class of an element. To do this, you link the element to the style by declaring a style for the class, then assigning that class to the element.

Example:
<head>
<style type="text/css">
div.css-section { border:1px dotted red; }
p.css-section { color:green; }
</style>
</head>
<body>
<div class="css-section">CSS Class</div>
<p class="css-section">CSS classes can be very useful</p>
</body>


SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com