<section id="main_section">
<section id="wraper">
<section id="content_left">
<article class="featured_news">
<header>
<img src="fonti.jpg" />
</header>
<h3>Lorem Ipsum! Ojczyzno moja ty jak słońce</h3>
<p>Lorem Ipsum ojczyzno moja ty jesteś jak zdrowie ile trzeba cię cenić ten tylko się dowie kto cię stracił.</p>
</article>
</section>
<section id="content_middle">
<section class="news_row">
<article><h3>NEWS 1</h3></article>
<article><h3>NEWS 2</h3></article>
<article><h3>NEWS 3</h3></article>
</section>
</section>
<section id="content_right">
<h3>TEST</h3>
</section>
</section>
</section>
#main_section {
display: table;
width: 95%;
margin-left: auto;
margin-right: auto;
background-color: white;
}
#wraper {
display: table-row;
}
#content_left, #content_middle, #content_right {
display: table-cell;
width: 33%;
}
My question is why position of contents in middle and right cells depends on height of img in left cell? When I delete img everything is alright.
If you’re talking about the vertical position, you could do this:
http://jsfiddle.net/SF9LM/6/
The reason is that table cells align ‘middle’ by default. By adding the image, you stretch the height of the first cell and all other cells follow suit.