<div class="well">
    Title (margin 2rem)
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  <button class="per625" data-per="62.5">
  <button class="double" data-per="100">
  <button class="double" data-per="120">
  <button class="double" data-per="140">
html {
  font-size: 62.5%;
  font-family: Arial, sans-serif;

.well {
  background: #efefef;
  margin: 2rem auto;
  padding: 1rem;
  max-width: 30rem;

h1 {
  margin: 0 0 2rem;
  font-size: 1.5rem;

p {
  margin: 0 0 1rem;

button {
  padding: 0.5rem 1rem;
$('button').on('click', function(e) {
  $('html').css('font-size', $(this).attr('data-per') + "%");

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js