Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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

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

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">

  <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

  <script src="https://use.fontawesome.com/290519fbc7.js"></script>

  <link rel="stylesheet" href="style.css">
  <title>Our game!</title>
</head>

<body>
  <div class="col-2">
    <header id="header">
      <h1><a href="https://miriellind.itch.io/quellavoltache" target="_blank">#QuellaVoltaChe</a></h1>
      <p>Hello welcome to our game!</p>
    </header>
    <nav class="col-1-nav">
      <ul>
        <li><a href="#header">Home</a></li>
        <li><a href="#content">About</a></li>
        <li><a href="#contacts">Contacts</a></li>
      </ul>
    </nav>
    <main id="content">
      <article>
        <div class="game">
          <div class="game-box"><p>The main game idea comes just after the explosion of the Weinstein case. A friend of mine in Italy started a hashtag #quellavoltache (that time when) and women all over the country just used it to share their harrassment experiences. I figured
            I wanted to do something about that.</p>
          <p>And one of the main points that emerged through discussions with peers and friends has been how the patriarchal culture affects men as much as women. We are from start deeply immersed in this idea of power play; that happens so much that we
            often lose the meaning of context. We just take it for granted, it becomes an axiom.</p>

          <p>So what we tried to do is to build a simple narrative which could illustrate how this culture is damaging for everyone. And hopefully make people think about how they become better allies just putting the whole context into discussion. So then
            this sentence by Albert Camus sums up our intents:</p>
          <p>The only way to deal with an unfree world is to become so absolutely free that your very existence is an act of rebellion.</p>
          <p>Let’s do that act of rebellion. It’s just worth it.</p></div>
        </div>
        <div class="images">
          <img class="picture picture1" src="https://preview.ibb.co/eXPUpb/MITA2843.jpg" alt="The Team" width="500px">
          <img class="picture picture2" src="https://image.ibb.co/j6DiFG/Screen_Shot.png" alt="Our game">
        </div>
      </article>
    </main>
    <footer id="contacts">
      <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
      <p>Made with <span><i class="fa fa-heartbeat" aria-hidden="true"></i></span> and <span><i class="fa fa-coffee" aria-hidden="true"></i></span> during <a href="https://gamesforthemany.org/">Games For The Many</a></p>
      <p>By <a href="https://codepen.io/LauraEnria/full/brLqom/" target="_blank">Laura Enria</a>, <a href="http://kurai.eu/" target="_blank">Federico Fasce</a>, <a href="https://twitter.com/alyphen_" target="_blank">Ross Binden</a>, <a href="https://twitter.com/jlowry"
          target="_blank">James Lowry</a></p>
    </footer>
  </div>
</body>
<script src="myScript.js"></script>

</html>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

  /*NAV menu*/

.col-1-nav {
  background: #0A7FA3;
  flex: 1;
}

ul {
  display: flex;
  justify-content: space-around;
  list-style: none;

}

#col-1-nav li {
  display: inline-block;
  padding: 10px;
}

#col-1-nav li:hover {
  border-bottom: 1px solid;
}

/*TITLE OF THE GAME */

.col-2 {
  display: flex;
  flex-direction: column;
  flex: 5;
}

header h1,p {
  text-align: center;
}


#content > article {
  flex: 4;
  min-height: 60vh;
}

article{
  display: flex;
  flex-direction: row;
}


div .game, .images{
  display:flex;
  flex-direction: column;

}

.picture{
  margin: 10px;
  padding: 10px;
}

header,
footer {
  background: #199ec7; /*blue*/
  color: #d7e3f1;
  padding: 100 0;
}

header,footer,article,nav {
  padding: 1em;
}

footer p {
  text-align: center;
  font-size: 14px;
}

article {
  background: #d7e3f1; /*grey*/
}

a {
  text-decoration: none;
  color: #d7e3f1;
}

a:hover {
  border-bottom: 1px solid;
  cursor: pointer;
  color:#FBFCFD;
  transition-property: color;
  transition-duration: 0.5s;
}

.fa-heartbeat {
  color: red;
}

/* border-box tells the browser to account for any border and padding in the value you specify for width and height. If you set an element's width to 100 pixels, that 100 pixels will include any border or padding you added, and the content box will shrink to absorb that extra width. This typically makes it much easier to size elements. */

/* > sign : It will target elements which are DIRECT children of a particular element. It will target all P element which are direct children of container div, not children of child div. */

.game{
  width:50%;
}


.game-box{
  width: 80%;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
}

.images{
  width: 50%;
  
}

.picture {
  margin-left: auto;
  margin-right: auto;
}

.picture.picture2 {
  height: auto;
  width: 250px;
}
              
            
!

JS

              
                
              
            
!
999px

Console