+ 1

Can i put more than one selector in the same CSS file??

Can i put more than one selector in the same CSS file and how??

15th Jan 2017, 7:54 PM
abdulmalek dery
abdulmalek dery - avatar
2 Réponses
+ 3
Obviously you can ^^ Just put the lines from the content of a <style></style> ( or compile many ) in a file, and link it to your html code by insterting a <link ... > element.
15th Jan 2017, 8:23 PM
visph
visph - avatar
+ 2
Sure you can: .selector1{ prop:value; prop:value; } .selector2{prop:value;} #selector3{prop:value;} etc.
17th Jan 2017, 8:55 PM
Victor