7) CSS Rule Structure

Rules defined in CSS file

Declarations grouped within a block:

selector {
     property: value;
     property: value;
     }

Element selector:
ul { padding-left: 5em; }

Selectors grouped within a rule:
ol, ul { margin-left: 5em; }

Class selector:
.entry-content { background-color: #c0c; }

Combination of element and class:
span.warning { font-weight: bold; }

ID selector:
#blog_title { font-size: 17px; }

Element within a class:

 .entry-content ol {
     background-color: #cc0;
     padding-left: 5em;
     }

Group combination & comment:
ol, ul { margin: 16px 0; padding: 0 0 0 40px; }  /* top, right, bottom, left */

Inline syle:
<div style=”font-weight:bold; color:red”>content.php</div>

 

BTW (off topic):

en.wikipedia.org/wiki/Indent_style#Ratliff_style

en.wikipedia.org/wiki/Em_(typography)