Web Development
HTML/CSS
Subjective
May 16, 2013
What is class selector?
Detailed Explanation
The class selector is used to specify a style for a group of elements.HTML elements with the same class.The class selector uses the HTML class attribute, and is defined with a "."In the example below, all HTML elements with class="content" will be :
.content{
float:left;
text-align:right;
color:red;
width:auto;
}
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts