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 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

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>


  <hr class="linea">
  
  <div id="main-container">
    
  <div id="left-container">
    <img class="img-control" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAasAAAB2CAMAAABBGEwaAAAAe1BMVEX///8ZGRkAAAAEBAR5eXnl5eXb29v8/Pzy8vKJiYm2trYXFxcTExN9fX2Ojo45OTlubm4QEBCkpKTV1dWVlZW+vr7u7u7Kysrh4eFzc3NLS0vFxcVZWVmhoaGtra1eXl5CQkIhISFnZ2c/Pz8uLi4nJydTU1NJSUkyMjJbCRxhAAASD0lEQVR4nO1d6YKiuhLG4IKKrQhqq+3ao93v/4SXsEiSqiwVPKOce+rXTAtJyJfUnkoQvISidLXMxjllx/3nP9HBcDI+zUPG2Hm7HOoeGq3/ia7/TZQeTkym39lq9MQOomPewWmZrjkam8OOscUeHQhbPLHXv0BDN0odmlo7vLjp59jk6/1eTGW+v5b5vCb53+7HJ8G1+mKsdxT/MlrmHXwM1AfHjPXrf0eO02DiAQPHNjwp74E5ksNMZrYXoyxk4bTHWBYJr0WHfHJ7+XQutMzKnTgsbAn+POHc8C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1gZi9kFRMNWzOhYjmZM1samjF1Xai/r45yxbw07oGE1HDMUKR+sgkVIPPhe0LL6ZIYfx6o0EOZ5ZSCnjPeQ9HTTMMxnM8E42IqZ2USUNyzPdpjjMp6kpTsgSifj31wCnrVaLnLDpMaTsF7NYoZcIuaN1cbybRoaZeV6YTFEOi1u08hX7Eeba8d4D0mMo/2Zc6i7JsL8Yf2e/ZUpiz1mMvXBnhodliUdd6BaF8uWKmXj7Y+msldN1PngRFKoxdEve3yBxuwkG0KDBZ+HUCsJCDTJVTvWOyrtjCbfLMn0fMcSiiua2M8ufCIV7lTq/n1sEYxOi4q2fUALhLbIcxLRpqKkmd91mZw2C75AQ7Y71jO3ntzzGcj/en3OzbPr44mr5Mu08lCt99mZ/WZUzRJtep9db8p++plNnnqz57Mppec2CrSfVd+7W2wX9/KfvRmQ1m1oOBl/1ZM6Xxw2T73PcT3crCbH5XGy2ny2mohuULQ5jq8/tyRMbj/X8XHzf/DJz6D/AeVP7CiTBKdfAAAAAElFTkSuQmCC" alt="Vogue logo">
    </div>
  <div id="form-container"> 
    <div id="contenedor-texto">
      <header>
  <h1 id="title"> Digital magazine survey</h1>
  <p class="subt" id="description"> We want to know our user's interests for our future magazine's issues! </p>
      </header>
      <form id="survey-form">
        <label id="name-label" for="name" class="general-font">Name</label>
      <input
        type="text"
        name="name"
        id="name"
        class="placeholder"
        placeholder="Enter your name"
        required
      />
        <label id="email-label" for="email" class="general-font">Email</label>
      <input
        type="email"
        name="email"
        id="email"
        class="placeholder"
        placeholder="Enter your Email"
        required
      />
        <label id="number-label" for="number" class="general-font">
          Age (optional)</label
      >
      <input
        type="number"
        name="age"
        id="number"
        min="10"
        max="99"
        class="placeholder"
        placeholder="Age"
      />
        <p class="general-font">Which section do you read the most?</p>
        
        <select id="dropdown" name="section" class="placeholder" required>
        <option disabled selected value>Select section</option>
        <option value="student">Fashion</option>
        <option value="job">Beauty</option>
        <option value="learner">Lifestyle</option>
        <option value="preferNo">Runway</option>
        <option value="other">Videos</option>
      </select>
        
        <p class="general-font">What would you like to see on Digital Vogue?</p>
        <div class="posicion-grupos">
      <label>
        <input
          name="recommend"
          value="pets"
          type="radio"
          class="input-radio"
          checked
        />Pet Section</label>
        
        <label>
        <input
          name="recommend"
          value="Home Deco"
          type="radio"
          class="input-radio"
          checked
        />Home Deco</label>
          
          <label>
        <input
          name="recommend"
          value="Celebrity News"
          type="radio"
          class="input-radio"
          checked
               />Celebrity News</label>
          
        </div>
        
        <p class="general-font">What would you like to see improved?(Check all that apply)</p>
        <div class="posicion-grupos">
        <label><input
          name="prefer"
          value="Photos"
          type="checkbox"
          class="input-checkbox"
        />Photos</label>
        
        <label><input
          name="prefer"
          value="Videos"
          type="checkbox"
          class="input-checkbox"
        />Videos</label>
        
        <label><input
          name="prefer"
          value="Beauty-tips"
          type="checkbox"
          class="input-checkbox"
        />Beauty tips</label>
        
        <label><input
          name="prefer"
          value="newsletter"
          type="checkbox"
          class="input-checkbox"
        />Newsletter</label>
        
        <label><input
          name="prefer"
          value="Sport-section"
          type="checkbox"
          class="input-checkbox"
        />Sport Section</label>
        
        <label><input
          name="prefer"
          value="user-prefferences"
          type="checkbox"
          class="input-checkbox"
        />User preferences</label>
        </div>
        <p class="general-font">Any comments or suggestions?</p>
        <div id="comments-container">
      <textarea
        id="comments"
        class="placeholder"
        name="comment"
        placeholder="Enter your comment here!"
      ></textarea>
        </div>
        <div id="button">
          <button type="submit" id="submit" class="submit-button">
        Submit
      </button>
        </div>

        
      </form>
    </div>
   </div>
  </div>
  <hr class="linea">

              
            
!

CSS

              
                 body{
  width:100%;
  overflow-x:hidden;
  background-color:white; 
  background-size:contain;
  margin:0;
  height:auto;
  
   
}

.linea{
  height:10px;
  width:100%;
  background-color:black;
  margin-top:0;
}
#main-container{
  display:flex;
  background-color:white;
  
  
  
}
#left-container{
  width:50%;
  display:flex; 
  flex-direction:column;
  background-color:white;
  justify-content:center;
  
 
  
}
.img-control{
  height: auto;
  width: 50%; 
  align-self:center;
 
}
#form-container{
  width:50%;
  display:flex;
  flex-direction:column;
  margin:1em;
  background-image:
    url("https://i.pinimg.com/originals/d5/d1/8d/d5d18dfba54c9cf2a7e87201b7b8bbfe.jpg");
    border: solid;
    border-width:3px;
    
   }

.input-checkbox{
  margin:0;
  padding:0;
}



/*Mobile and tablet screen */
@media screen and (max-width: 1024px){
  #main-container{
    flex-flow: row wrap;
  }
  #left-container{
    width:100%;
  }
  .img-control{
    width:40%;
  }
  #posicion-grupos{
    flex-flow: row wrap;
  }
  #form-container{
    width:100%;
  }
}

 
}
#title{
 font-family: 'Playfair Display', serif;
 font-size:2.2em;
}

.subt{
  font-family: 'Roboto', sans-serif;
  font-size:1.1em;
}

#contenedor-texto{
  margin:1em;
}
.general-font{
  font-family: 'Roboto', sans-serif;
  font-size:1em;
}
.placeholder{
  font-family: 'Roboto', sans-serif;
  font-size:1em;
  margin-top:0.5em;
  border-color: grey;
  border-style:solid;
  border-width: 1.2px;
  
}
#name:focus{
   outline: 2px solid black; 
}
#email:focus{
   outline: 2px solid black; 
}
#number:focus{
   outline: 2px solid black; 
}
#first-input:focus{
  outline: 2px solid black;     
}
select:focus{
  outline: 2px solid black; 
}

#dropdown{
  margin-top:0;
}

label{
  display:flex;
  
  margin-top:1em;
  font-family: 'Roboto', sans-serif;
  font-size:1em;
 
}


.texto-chico{
  font-size:0.8em;
}

.input-radio{
  width:4em;
  height:1.2em;
  margin-bottom:0.7em;

}
.posicion-grupos{
  display:flex;
  flex-flow:row wrap;
  
}
.input-checkbox{
   width:4em;
  height:1.2em;
  margin-bottom:0.7em;
 margin-right:0;
  margin-left:0;
}

#comments{
  padding:2em;
  width: 100%;
  
  
}
#comments-container{
  display:flex;
  justify-content:center;
  
}

textarea:focus{
  outline: 2px solid black;     
}

#button{
  margin-top:1em;
  display:flex;
  justify-content:center;
  
}
.submit-button{
  width:100%;
  font-family: 'Playfair Display', serif;
  font-size:1.2em;
background: linear-gradient(0deg, rgba(247,160,160,1) 0%, rgba(246,182,182,1) 50%, rgba(241,197,197,1) 100%);
  box-shadow: 0px 7px 5px -1px rgba(0,0,0,0.75);
 border-width:0px;
}
.submit-button:active{
  box-shadow: 0px 1px 5px -1px rgba(0,0,0,0.75);
}
button:focus{
  outline: none;
}

.submit-button:hover{
  background: linear-gradient(deg, rgba(255,169,169,1) 0%, rgba(250,188,188,1) 50%, rgba(252,210,210,1) 100%);
}

              
            
!

JS

              
                
              
            
!
999px

Console