Good day to all. When designing your portfolio page I ran into a problem. The point is this: we have a page with max-width: 100%; and we have a header on it with the same max-width . Then we add a picture on top of this header'а . Margin'ом set a specific position for this image. We get this picture: 
The most interesting thing comes when we begin to change the width of the page, it turns out this rubbish: 
<div id="header"> <img src="img/profile-ph.png" alt="Profile pho"> </div> #header{ background: url(../img/header-bg.png) rgb(240,73,73); height: 3.75em; } #header img{ margin-top: 5px; margin-left: 300px; }