we pass CSS class name in an element to apply that class on that element but what is purpose of passing CSS class name more then once in one element?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By combining two or more classes on one element, it allows you to write less CSS. Here’s a simplified example:
With this, we can still use each class independently, or combine them with any other combination of class names to inherit the style declarations of each.
If you meant using the same class name repeatedly on one element, then there is no purpose.