Reponsive Images on the Web Using HTML5 figure tag

So recently while making a responsive website, I needed to create a few images that would automatically rearrange with the screen size. So after searching around for few different ways to do this, I found the HTML5 figure tag that made things a lot easier. I used it with the figcaption tag to make the captioning easier as well.

Screenshot from 2014-02-05 17:37:17

Screen Shot 2014-02-04 at 17.39.23


  <img src="created.png" alt="created image" />
  <img src="original.jpg" alt="original image" />
  <img src="altered.jpg" alt="altered image" />

The CSS:

figure {
  display: inline-table;
  margin: auto;
figcaption {
  text-align: center;
  font-weight: bold;

Categories: General