ARTICLE - HOME PAGE
EXAMPLE 2
Another pic
HOW IT WORKS
Screen width is in red
box_picture_container
HTML
<div class="narrow_picture_container"> <img src="yourpicturelink.jpg" alt="your note"/> </div>
CSS
.narrow_picture_container { text-align:center; height: 300px; position: relative; margin-left: auto; margin-right: auto; overflow: hidden; } .narrow_picture_container img { position: absolute; margin: auto; width: 100%; top: 0; left: 0; right: 0; bottom: 0; }
EXAMPLE 1
What it does