JSFiddle - React, Tailwind, and code Playground
HTML
<div id="header">
<div class="container">
<div id="photo">
<img src="http://www.helpmij.nl/forum/attachment.php?attachmentid=202111&d=1389738444" alt="" />
</div>
</div>
</div>
CSS
/* reset om te testen */
html,body,div,img {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
body {
font: normal 100% arial, sans-serif;
}
/* structuur */
#header {
width: 100%;
background: #000;
}
.container {
width: 80%;
max-width: 900px;
height:113px;
margin: 0 auto;
}
#header .container {
background: #00f; /* blauw om te testen */
}
/* foto auto-resize */
#photo {
width: 100%;
}
#photo img {
width: inherit;
max-width: 100%;
height: auto;
}