Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Hierarchie Borders MarkUp</title>
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
      .parent { display: block; position: relative; z-index: 0;
                height: auto; width: auto; padding: 25px;
              }
     
      .parent-bg { display: block; height: 100%; width: 100%; 
                   position: absolute; top: 0px; left: 0px; 
                   border: 1px solid white; z-index: 0; 
                 }
      .parent-bg:hover { border: 1px solid red; }
    
      .child { display: block; position: relative; z-index: 1; 
               height: auto; width: auto; padding: 25px;
             }
      
      .child-bg { display: block; height: 100%; width: 100%; 
                  position: absolute; top: 0px; left: 0px; 
                  border: 1px solid white; z-index: 0; 
                }
      .child-bg:hover { border: 1px solid red; }
        
      .grandson { display: block; position: relative; z-index: 2; 
                  height: auto; width: auto; padding: 25px;
                }
    
      .grandson-bg { display: block; height: 100%; width: 100%; 
                     position: absolute; top: 0px; left: 0px; 
                     border: 1px solid white; z-index: 0; 
                   }
      .grandson-bg:hover { border: 1px solid red; }
</style>
</head>
<body>
  <div class="parent">
    Parent
    <div class="child">
      Child
      <div class="grandson">
        Grandson
        <div class="grandson-bg"></div>
      </div>
      <div class="child-bg"></div>
    </div>
    <div class="parent-bg"></div>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers