<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
-->
<style type='text/css'>
.layer1{height:200px;
background-color: black;
position: relative;
z-index: 0;}
.col{ position:relative;
width: 30px;
border-right: 1px solid white;
float:left;}
.layer2{position: absolute;
top: 0;
z-index: 1;
color: red;
text-transform: uppercase;}
.example{margin-top: 10px;
height: 80px;
width: 80px;
background-color: grey;
position relative;
z-index: 10;
color: black;}
</style>
<script type='text/javascript'>
$(function (){
var hg=$('.layer2').height();
hg=hg+20+'px';
$('.col').height(hg);
});
</script>
</head>
<body>
<div class="container">
<div class="layer1">
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
</div>
<div class="layer2">
<div class="example">фото</div>
<div>вся структура страницы</div>
</div>
</div>
</body>
</html>
ksa, Визуализация помогает... переставил ;
убрал nnn
в col добавил position