cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href='https://fonts.googleapis.com/css?family=Love+Ya+Like+A+Sister' rel='stylesheet' type='text/css'>
</head>
<div class="wrapper">
  <div class="wrapper-container">
    <nav class="navbar">

       <ul>
        <li><a href="https://codepen.io/louis345/full/yJQNXW/">Home</a>
      <li><a href="https://codepen.io/louis345/pen/kXQWoN">Motivational Quotes</a>
             <li><a href="https://codepen.io/louis345/full/JKZGQo/">Famous Quotes</a>
            <li><a href="https://codepen.io/louis345/pen/JKwbwK">Computer Quotes</a></li>
      </ul>
    </nav>
    <class="content">
      <hr>
      <h1>Random Quote Machine</h1>
      <p>Just click on each section to view quotes on your favourite topic.</p>


      <div class="img  content responsive">
        <a href="https://s.codepen.io/louis345/debug/JKwbwK">
          <img src="https://i.imgur.com/xt4gwxS.jpg" width="300" height="200" id="image1">
        </a>
        <div class="desc"><span class="imgText">Programming  Quotes</span></div>
      </div>
      <div class="img content responsive">
        <a href="https://codepen.io/louis345/full/kXQWoN/">
          <img src="https://imgur.com/download/LKDzl7K" alt="Fjords" width="100" height="150">
        </a>
        <div class="desc">Motivational Quotes</div>
      </div>
      <div class="img content responsive">
        <a href="https://codepen.io/louis345/full/PzVLmZ/">
          <img src="https://i.imgur.com/sVvqH6o.jpg" alt="Fjords" width="300" height="200">
        </a>
        <div class="desc">Spirtual Quotes</div>
      </div>
      <div class="img content responsive">
        <a href="https://codepen.io/louis345/full/JKZGQo/">
          <img src="https://i.imgur.com/0LMEsyp.jpg" alt="Fjords" width="300" height="200">
        </a>
        <div class="desc">Famous Quotes</div>
      </div>

  </div>
</div>

</section>
            
          
!
            
                .wrapper {
  margin: 0 auto;
  width: 960px;
  height: auto;
}

.wrapper-container {
  display: inline-block;
  background: #001D2C;
  width: 90%;
}

.hide {
  background-color: #fe5652;
  visibility: hidden;
}

h1 {
  font-family: 'Love Ya Like A Sister', cursive;
  font-size: 5em;
  text-align: center;
  font-weight: normal;
}

p {
  font-family: 'Indie Flower', cursive;
  text-align: center;
  font-size: 1.3em;
}

.navbar {
  background: white;
  height: 50px;
  padding-bottom: 70px;
  background-image: url(https://i.imgur.com/t3Lv2dQ.jpg);
}

body {
  color: #D4EBF2;
  background: #CACCC9;
  margin: 0;
  padding: 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
  padding: 30px;
}

nav a {
  text-decoration: none;
  font-family: "brandon-grotesque";
  text-transform: uppercase;
  text-decoration: overline;
  color: #00699e;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1em;
}

div.img {
  margin: 100px;
  border: 1px solid #0f4f74;
  padding: 3px;
  float: left;
  border-radius: 7px;
  width: 300px;
  height: 250px;
  margin-right: -10px;
  transition: all 0.75s ease;
}

div.img img {
  border-radius: 5px;
}

div.img {
  padding 3px;
}

div.img:hover {
  border-color: #fff;
}

div.img img {
  width: 100%;
  height: auto;
}

div.desc {
  font-family: 'Indie Flower', cursive;
  padding: 20px;
  text-align: center;
  font-size: 1.0em;
}

.content:hover {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

.content {
  width: 80px;
  margin: 25px;
  -webkit-transition: all .4s ease-in-out;
  -moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -ms-transition: all .4s ease-in-out;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

* {
  box-sizing: border-box;
}

@media only screen and (max-width: 736px) {
  .wrapper {
    width: 100%;
  }
  .wrapper-container {
    width: 100%;
  }
  .responsive {
    max-width: 50%;
  }
  div.img {
    width: 90%;
    height: auto;
  }
  .navbar {
    background: #FFFFFF;
    height: 50px;
    padding-bottom: 105px;
    padding-top: auto;
  }
  nav a {
    padding: 0.5em 1.3em;
    text-decoration: none;
    cursor: pointer;
    color: #757575;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    display: block;
    padding: 0.2em;
    font-size: 1.1em;
    border-bottom: 1px #330000;
  }
  nav a:hover {
    background-color: yellow;
  }
  nav ul {
    margin: 0;
    padding: 0;
  }
  nav li {
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #021C29
  }
            
          
!
999px
Loading ..................

Console