Images

Examples

Image

This photo is more than 3000 pixels wide. The width is set to 100% to ensure it doesn’t bleed off the viewport and always fills its container. In some situations, this will make the image stretch to be larger than its actual width. To avoid the image stretching past its width, set max-width instead.

<img src="http://tachyons.io/img/over-canvas.jpg" class="w-100" alt="night sky over land"> night sky over land

The image below is 720 pixels wide, it will fill its container until the container is wider than 720 pixels.

<img src="http://tachyons.io/img/under-canvas.jpg" class="mw-100" alt="night sky over water"> night sky over water

Previous

Border Radius

Next

Links