title: CSS issues with nested divs and classes used in multiple levels
body: <p>(Before I start, yes I have asked a <a href="https://stackoverflow.com/questions/10940422/how-to-float-image-inside-of-div">similar question</a> before; unfortunately due to new information being added, the markup has completely changed for the worse, and it's now impossible for me to figure out.)</p>
  
  <p>I have some very ugly markup generated by a Drupal view. Because many of the class names can be used in multiple places, in various levels of the hierarchy (for example, the first <code>view-content/view-grouping/view-grouping-header</code> needs to float left (or at least the contents of it do for the headshot image, but the other view-grouping-header elements need to display to the right of the image), I can't just address the class names; I need to get the full hierarchy. I'm having some trouble with that... (I know someone is going to come along and say, "but you can add classes to fields in Drupal views; why not do that?" Well, you can if you're displaying individual fields, but in this case I need to group by 5 of the 6 fields that are displayed, and when you group by a field you set the field itself to be excluded from the display, which means any custom classes you add to the field are ignored. The only thing you can do stylewise with grouping is apply a single class to all rows, which I've done but doesn't help in this case.)</p>
  
  <pre><code>&lt;div class="view-clone-of-speaker-list"&gt;
  &lt;div class="view-content"&gt;
  &lt;div class="view-grouping"&gt;
      &lt;div class="view-grouping-header"&gt;
          &lt;div id="file-741" class="file file-image file-image-jpeg 
           contextual-links-region"&gt;
              &lt;div class="content"&gt;
                  &lt;img src="johndoe.jpg" width="180" height="180" alt="" /&gt; 
                  &lt;!-- this img needs to float left --&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="view-grouping-content"&gt;
          &lt;div class="view-grouping"&gt;
              &lt;div class="view-grouping-header"&gt;
                  &lt;a href="/speaker/john-doe"&gt;John Doe&lt;/a&gt;
                  &lt;!-- this view-grouping-header a needs to be styled differently 
                  than the one the next level down (view full profile) --&gt;
              &lt;/div&gt;
  
              &lt;div class="view-grouping-content"&gt;
                  &lt;div class="view-grouping"&gt;
                      &lt;div class="view-grouping-header"&gt;
                          Freelance consultant
                      &lt;/div&gt;
                      &lt;div class="view-grouping-content"&gt;
                          &lt;div class="view-grouping"&gt;
                              &lt;div class="view-grouping-header"&gt;
                                  Path to Purchase Institute
                              &lt;/div&gt;
                              &lt;div class="view-grouping-content"&gt;
                                  &lt;div class="view-grouping"&gt;
                                      &lt;div class="view-grouping-header"&gt;
                                          &lt;a href="/speaker/john-doe"&gt;
                                      view full profile    &amp;gt;&lt;/a&gt;
                                      &lt;/div&gt;
                                      &lt;div class="view-grouping-content"&gt;
                                          &lt;h3&gt;Sessions:&lt;/h3&gt;
                                          &lt;div class="views-row views-row-1 views-row-odd views-row-first"&gt;      
                                              &lt;div class="views-field views-field-title-1"&gt;
                                                  &lt;span class="field-content"&gt;
                                                      &lt;a href="/session/keynote-address-2"&gt;Keynote Address 2&lt;/a&gt;
                                                  &lt;/span&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                          &lt;div class="views-row views-row-2 views-row-even views-row-last"&gt;      
                                              &lt;div class="views-field views-field-title-1"&gt;
                                                  &lt;span class="field-content"&gt;
                                                      &lt;a href="/session/keynote-address-1"&gt;Keynote Address 1&lt;/a&gt;
                                                  &lt;/span&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is what I've tried, for example, to get the outer view-grouping - I want to put a border around the entire thing:</p>
  
  <pre><code>.view-clone-of-speaker-list.div.view-content.div.view-grouping {
      border: 1px solid #a8a8a8;      
  }
  </code></pre>
  
  <p>But according to Firebug the element is not getting that style.</p>
  
  <p>Here's the desired outcome; I don't need help (I don't think!) with the actual style code; I just need a hand figuring out how to address the correct elements given how frakkin' awfully they're nested. 
  <img src="https://i.stack.imgur.com/oXHW9.png" alt="enter image description here"></p>