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.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <!DOCTYPE HTML>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="description" content="specifically descrpitive content about your page here">
  <!--scripts here-->
  <script src="script.js"></script>
  <!--[if lt IE 9]>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
    <![endif]-->
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://fonts.googleapis.com/css?family=yourfonthere" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Abril+Fatface|Germania+One" rel="stylesheet">
  <link rel="stylesheet" href="/style.css">
  <title>Page Title Here</title>
</head>

<body>
  <!-- begin page content -->
  <div id="pagewrap">
    <h1 class="header"> Welcome to HTML + CSS!</h1>
    <div id="flexwrapper">

      <div class="box1">
        <p>Box 01 content goes here! </p>
      </div>

      <div class="box2">
        <p>Box 02 content goes here! </p>
      </div>

      <div class="box3">
        <p>Box 03 content goes here! </p>
      </div>

    </div>
    <!--END FLEXWRAP-->
    <footer><span>Awwwwwww yeah<span></footer>
  </div><!--END PAGEWRAP-->
  
</body>

</html>
            
          
!
            
              body {
  background-color: #2b2b2b;
  margin: 0;
  padding: 0;
}

#pagewrap {
  width: 80%;
  height: auto;
  background-color: white;
  margin: 0.5em auto;
  padding: 0.5em 0.5em 3em 0.5em;
  max-width: 1400px;
}

#flexwrapper {
  width: 80%;
  height: auto;
  background-color: white;
  display: flex; /*sets parent container to flex*/
  align-items: center;
  justify-content: space-around; /*sets spacing on horizontal axis*/
  margin: 3em auto 0 auto;
  padding: 0.5em;
}

h1.header {
  font-family: "Germania One", helvetica;
  font-size: 6em;
  text-align: center;
  padding-top: 0.25em;
}

.box1 {
  width: 30%;
  height: 10em;
  background-color: pink;
  text-align: left;
  padding: 0.5em;
  margin: 0.5em;
  overflow: hidden;
}

.box2 {
  width: 30%;
  height: 10em;
  background-color: green;
  text-align: left;
  padding: 0.5em;
  margin: 0.5em;
  overflow: hidden;
}

.box3 {
  width: 30%;
  height: 10em;
  background-color: salmon;
  text-align: left;
  padding: 0.5em;
  margin: 0.5em;
  overflow: hidden;
}

/*overflow: hidden; hides "content here" text as you squeeze down the window—set box heights to "auto" and remove overflow hidden as you add content*/

p {
  font-family: helvetica;
  font-size: 1em;
  text-align: center;
}

footer {
  width: 80%;
  margin: 0 auto;
  height: autoem;
  background-color: red;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer span {
  color: white;
  margin: 0.75em auto 1.5em auto;
  font-family: "Germania One";
  font-size: 2em;
}

/*MEEEEEDIAAAA QUERIES*/

@media only screen and (max-width: 800px) {
  
  
  #flexwrapper{
    display: block;
    width: 95%;
    margin: 0 auto;
  }
  
  h1.header {
    font-size: 1.5em;
    padding-top: 0;
  }
  
  
.box1{
    width: 90%;
    margin: .5rem 0 .5rem .85rem;

    }
  
  .box2{
    width: 90%;
    margin: .5rem 0 .5rem .85rem;

    }
  
  .box3{
    width: 90%;
    margin: .5rem 0 .5rem .85rem;

    }
  

  footer span {
    font-size: 0.75em;
  }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console