The official blog for the Friday Addition Web Site Design class
First ask questions like: Do any selectors select my element? What about inheritance?Ethan
If you leave out all the element names, and just use a period followed by a class name, then the rule will apply to all members of the class.[Collin]
If multiple selectors select an element, the browser selects the most specific rule. Autumn
if multiple selectors select a rule the selector used is the one that the browser can display in order of the selectors listed{travis}
If all are equally specific, you choose the one that is last in the CSS file.Gracie
First ask questions like: Do any selectors select my element?
ReplyDeleteWhat about inheritance?
Ethan
If you leave out all the element names, and just use a period followed by a class name, then the rule will apply to all members of the class.
ReplyDelete[Collin]
If multiple selectors select an element, the browser selects the most specific rule.
ReplyDeleteAutumn
if multiple selectors select a rule the selector used is the one that the browser can display in order of the selectors listed
ReplyDelete{travis}
If all are equally specific, you choose the one that is last in the CSS file.
ReplyDeleteGracie