I have a strange problem.
Background that was set by CSS for .article-container and <article> does not displays at all (neither image nor color). Background that was set for <article> children displays property.
The page: http://new.elenaakulova.com.ua/.
Or the code:
<div id="article-container">
<article id="about-me">
<div id="photo">
<img src="http://placehold.it/300x404" width="300px">
</div>
<div id="description">
<hgroup>
<h2>психолог</h2>
<h1>Вася Пупкин</h1>
</hgroup>
<p>Здравствуйте!</p>
</div>
</article>
</div>
and
#article-container {
width: 1000px;
margin-left: auto;
margin-right: auto;
background: white;
}
#article-container > article {
background: white;
}
#about-me #description {
float: left;
background: blue;
}
You need to add
overflow: hidden;to#article-containerThe block formatting context clears the floats. Source: http://www.w3.org/TR/CSS2/visuren.html#block-formatting