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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!--
flexbox

one whole div
and three section divs

grid is the next gen doesn't have a lot of browser support
-->

<!--
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
-->
  
  
<head>
  <title>Game of Thrones Survey</title>
</head>

 


<body>  
  

<div id="flex-container">
    
<div class='column'>

  <div id="column-one">
   <img id="cersei" src="https://preview.redd.it/ox9lhq04d8y21.jpg?width=960&crop=smart&auto=webp&s=d68457fc776dba935d3ee33d3424552e0b03d315" alt="Cersei with an elephant on her shoulder">

    <img id="littlefinger" src="https://i.redd.it/svskgvw6dmy21.png" alt="littlefinger meme">

    <img id="khaleesi" src="https://pbs.twimg.com/media/D6cypUkWAAAviv8?format=jpg&name=small" alt="khalessi meme">  
    

  </div>
 </div>
    
 <div class='column'>
  
  <div id="column-two">

  <header class="white-text">
    <h1 id="title">Game of Thrones Survey</h1>
    <p id="description">A survey form for fans of Game of Thrones</p>
  </header>

  <form id="survey-form"
    <label id="name-label">Name:</label><br>
    <input id="name" type="text" required placeholder="Jon Snow"><br>
    <label id="email-label">Email:</label><br>
    <input id="email" type="email" required placeholder="youknownothing@gmail.com"><br>
    <label id="number-label">Age:</label><br>
    <input id="number" type="number" min="3" max="140" placeholder="22"><br>
    <label>Sex</label>
    <select id="dropdown">
        <option>Male</option>
        <option>Female</option>
        <option>Other</option>
    </select><br>
    <label>Are you a Game of Thrones fan?</label><br>
    <input type="radio" value="yes" name="fan">Yes<br>
     <input type="radio"  value="no" name="fan">No<br>
    <label>Who are your favorite characters? (Choose at most 3)</label><br>
    <input type="checkbox" value="Ned Stark">Ned Stark<br>
    <input type="checkbox" value="Catelyn Stark">Catelyn Stark<br>
    <input type="checkbox" value="Jon Snow">Jon Snow<br>
    <input type="checkbox" value="Arya Stark">Arya Stark<br>
    <input type="checkbox" value="Rob Stark">Rob Stark<br>
    <input type="checkbox" value="Sansa Stark">Sansa Stark<br>
    <input type="checkbox" value="Bran Stark">Bran Stark<br>
     <input type="checkbox" value="Petyr Baelish">Petyr Baelish<br>
     <input type="checkbox" value="
  Daenerys Targaryen">Daenerys Targaryen<br>
     <input type="checkbox" value="
    Tyrion Lannister
  ">Tyrion Lannister<br>
      <input type="checkbox" value="Jaime Lannister
  ">  Jaime Lannister<br>
      <input type="checkbox" value="Cersei Lannister">Cersei Lannister<br>
      <input type="checkbox" value="Tywin Lannister">Twin Lannister<br>
      <input type="checkbox" value="Joffrey Baratheon">Joffrey Baratheon<br>
      <input type="checkbox" value="Robert Baratheon">Robert Baratheon<br>
    <label>Did you like Season 8?<
      /label><br>
    <input type="radio" value="yes" name="season8">Yes<br>
     <input type="radio"  value="no" name="season8">No<br>
    <label>What did you think of Season 8?</label><br>
    <textarea rows="10" cols="30"></textarea><br>
    <input type="submit" id="submit" value="submit">

  </form>   

  </div>
</div>
    
 <div class='column'>

  <div id="column-three">

    <img id="patrick-stewart" src="https://preview.redd.it/tto9g4g9tev21.jpg?width=960&crop=smart&auto=webp&s=5872b4c106bd3513321a94ce1d5382ea30ae2f93" alt="patrick-stewart meme">

    <img id="dorthraki" src="https://preview.redd.it/cuo505co2vv21.jpg?width=640&crop=smart&auto=webp&s=d8634b91e7e34f06ed46f752e52e40c6ea3b874f" alt="dothraki-meme">
    
    <img id="kit-harington" src="https://i.redd.it/xg7wj7gygi731.jpg" alt="I don't want it meme">
  </div>
</div>
  
</div><!-- parent -->  
    
</body>  
  
  
  
  
              
            
!

CSS

              
                /*
Notes:
- https://dev.to/drews256/ridiculously-easy-row-and-column-layouts-with-flexbox-1k01
  Used this for flexbox three column layout
*/

#flex-container
{
  display: flex;

}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}



@media only screen and (max-width: 800px) 
{
  img
  {
    width: 100% !important;
  }
}

#cersei
{
 width: 90%;
  padding: 10px;
}

#littlefinger
{
 width: 90%;
 padding: 10px;

}

#khaleesi
{
 width: 90%;
  padding: 10px;
}

#patrick-stewart
{
 width: 90%;
  padding: 10px;  
}

#dorthraki
{
 width: 90%;
  height: 260px;
  padding: 10px;  
}

#kit-harington
{
 width: 90%;
 padding: 10px;  
  height: 450px;
}

body
{
  text-align: center;
  /*
  background-image: url(https://financoff.com/wp-content/uploads/2019/07/cq5dam.web_.1200.675.jpeg); 
  background-repeat: no-repeat;
  background-size:100% 100%;
  */
  background-color: #5CB9F2; 

}

  .white-text {
    
    background-color: white;
    
   /*
    width: 25%;
    float: none;
   */
  }

#survey-form
{
  background-color: white;
  padding: 10px;
  
}

form
{ 
  line-height: 1.6;
  
}

/*
.checkbox
{
  display:inline-block;
}
*/

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console