Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


                <nav class="menu">
  <div id="b1">DOGS</div>
  <div id="b2">CATS</div>
  <div id="b3">BIRDS</div>
  <div id="b4">FISHES</div>
  <div class="area" id="t1"> The domestic dog (Canis lupus familiaris or Canis familiaris) is a domesticated canid which has been selectively bred over millennia for various behaviours, sensory capabilities, and physical attributes. Dogs perform many roles for people, such as hunting, herding, pulling loads, protection, assisting police and military, companionship and, more recently, aiding handicapped individuals. This impact on human society has given them the sobriquet, "man's best friend". </div>
  <div class="area" id="t2"> The domestic cat (Latin: Felis catus) or the feral cat (Latin: Felis silvestris catus) is a small, typically furry, carnivorous mammal. They are often called house cats when kept as indoor pets or simply cats when there is no need to distinguish them from other felids and felines. Cats are often valued by humans for companionship and for their ability to hunt vermin. There are more than 70 cat breeds; different associations proclaim different numbers according to their standards. </div>
  <div class="area" id="t3">Birds (Aves) are a group of endothermic vertebrates, characterised by feathers, toothless beaked jaws, the laying of hard-shelled eggs, a high metabolic rate, a four-chambered heart, and a lightweight but strong skeleton. Birds live worldwide and range in size from the 5 cm (2 in) bee hummingbird to the 2.75 m (9 ft) ostrich. They rank as the class of tetrapods with the most living species, at approximately ten thousand, with more than half of these being passerines, sometimes known as perching birds or, less accurately, as songbirds. </div>
  <div class="area" id="t4">A fish is any member of a paraphyletic group of organisms that consist of all gill-bearing aquatic craniate animals that lack limbs with digits. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish, as well as various extinct related groups... Fish are abundant in most bodies of water. They can be found in nearly all aquatic environments, from high mountain streams (e.g., char and gudgeon) to the abyssal and even hadal depths of the deepest oceans (e.g., gulpers and anglerfish). With 33,100 described species, fish exhibit greater species diversity than any other group of vertebrates. </div>


                @import url(;
@import url(;

body {
  background: darkgreen;
  text-align: center;
  font-size: 1.2em;

.menu {
  display: flex;
  justify-content: space-around;
  font-family: 'Fredoka One', cursive;
  /* Aqui tenta também space-between  */

.menu>div {
  padding: 20px;
  background: orange;
  cursor: pointer;

.menu>div:hover {
  background: #003333;
  color: orange;
  border: solid 1px orange;

article {
  border: solid 2px white;
  margin: 7px 20px;
  height: 7em;
  font-family: 'Josefin Sans';

.area {
  background: white;
  margin: 3px;
  padding: 8px;
  display: none;

@media (max-width: 400px) {
  .menu {
    flex-flow: column wrap;
  .menu>div {
    border: solid 1px green;


                $(document).ready(function() {

  $('.menu>div').click(function() {
    $('.area, article').css('height', 'auto');

  $('#b1').click(function() {

  $('#b2').click(function() {

  $('#b3').click(function() {

  $('#b4').click(function() {