general.css
#feedback_bar
{
/*props*/
}
another.css
#feedback_bar
{
/*props*/
}
Is this allowed? Will both get inherited?
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.
The properties defined last will override properties defined previously. Unless you use
!importanton the previously defined section of CSS..thingwill havepadding: 12px;.thingwill havepadding: 15px;This is allowed, and to more strictly answer your question, both will indeed be inherited as shown by this example:
.thingwill have bothpadding: 10px;andbackground: red;.Also, please take a moment to read some of the comments on this answer as they raise good points worth further reading.