CSS Cheat Sheet

Selectors Universal Selector * {} ID Selector #id {} Class Selector.class {} Type Selectorh1, h2 ,h3 {} Adjacent Sibling Selectorh1 + p {} Child Selectorul > li {} General Sibling Selectorh1 ~ p {} Descendant Selectorp a {} Attribute Selectordiv[attribute=”SomeValue”] Read More …