JSFiddle - React, Tailwind, and code Playground

by Joe Young

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

<h1>Fonts</h1>
<div id="selectionBox"></div>
<div id="whatFontHead">Change Font</div>
<div id="whatFont">
   <p id="to-os">Open Sans</p>
   <p id="to-vd">Verdana</p>
   <p id="to-sl">Slabo</p>
   <p id="to-cg">Courgette</p>
</div>

CSS

#whatFontHead {
   width: 200px;
   height: 55px;
   line-height: 55px;
   background-color: #0099FF;
   text-align: center;
   -webkit-border-top-left-radius: 22px;
   -moz-border-radius-topleft: 22px;
   border-top-left-radius: 22px;
   -webkit-border-top-right-radius: 22px;
   -moz-border-radius-topright: 22px;
   border-top-right-radius: 22px;
   margin-bottom: -0;
}

#whatFont {
   width: 200px;
   height: 400px;
   background-color: #0099FF;
   text-align: center;
   margin-top: 0;
   display: none;
}

JavaScript

$(document).ready(function() {
   $("#whatFontHead").click(function() {
      $("#whatFont").slideToggle();
   });
});