title: struggling with simple CSS stuff
body: <p>First off if someone can point me to a good reference that describes how css works and how to do basic stuff I would be very grateful!  I know the stuff is out there but finding it with search engines is problematic because of the way results are weighted towards things that describe individual elements from a height of one inch (2.5 cm ;) but I need something looking from a height of a couple of metres! </p>
  
  <p>here is some simple html:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;style type="text/css"&gt;.indent: { margin-left: 2em; margin-top: 0 } &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.indent { margin-left: 2em; margin-top: 0 }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Some text ...
          &lt;div class="indent"&gt;I want this indented:
            xxxxx
          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>  &lt;/body&gt;
  &lt;/html&gt;&lt;br&gt;
  </code></pre>
  
  <p>which renders as:</p>
  
  <pre><code>Some text ...
  I want this indented: xxxx
  </code></pre>
  
  <p>I want the last line indented and I can do this by specifying the style in the div tag.  Further more I want to nest the divs and get another level of indenting.</p>