Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
<link href="https://fonts.googleapis.com/css?family=Montserrat|News+Cycle|Poiret+One|Raleway&display=swap" rel="stylesheet">
<body>

<div class="backgroundImage"></div>
<div class="backgroundOverlay"></div>
<div class="outerDiv themeOne"  id="main">

<div class="innerDiv" >
	<div class="header" >
      <h1 id="title">FCC Assignment Survey</h1>
      <p id="description">
        A breif survey  to show that I can program a form and have it be responsive in nature, responding to the viewport dimensions. Please note, due to the nature of CodePen viewing this page on iOS devices in landscape seems to cause aligntment probelms. As this assingment isn't specifically how to adjust my own CSS to work within the context of CodePen I have not spent any time trying to address this issue. 
      </p>

    </div>

    <div class="formContainer">

      	<form id="survey-form" class="myForm">
	        <div class="inputRow">
		         <label for="name" id="name-label" class="inputLabel">Name</label>
		         <input type="text" id="name" required placeholder="John Smith" class="inputText"/>
	        </div>
	        <div class="inputRow">
	        	<label for="email" id="email-label" class="inputLabel">Email</label>
	        	<input type="email" id="email" required placeholder="john@gmail.com" class="inputText"/>
	        </div>
	        <div class="inputRow">
		        <label for="number" id="number-label">Salary (optional)</label>
		        <input type="number" id="number" min="0" max="100" placeholder="100000"/>
	        </div>
	        <div>
	        	<label for="dropdown">Choose any option as the form doesn't actually do anything. </label>
		        <select id="dropdown">
		          <option value="opt1">Option 1</option>
		          <option value="opt2">Option 2</option>
		          <option value="opt3">Option 3</option>
		        </select>
	        </div>
	        <div>
	        	<div>Please choose a fish category</div>
	        	<div class="checkboxContainer">
			        <div>
			        	<input type="radio" name="surveyRadio" value="1" id="radio1"/> 
			        	<label for="radio1">Blue</label>
			        </div>
			        <div>
			        	<input type="radio" name="surveyRadio" value="2" id="radio2"/>
			        	<label for="radio2">Red</label>
			        </div>
			        <div>
			        	<input type="radio" name="surveyRadio" value="3" id="radio3"/>
			      	    <label for="radio3">One</label>
			      	</div>
			        <div>
			        	<input type="radio" name="surveyRadio" value="4" id="radio4"/>
			        	<label for="radio4">Two</label>
			        </div>
		    	</div>
		    </div>
	        <div>
	        	<div>Choose as many foods you like</div>
		        <div class="checkboxContainer">
		            <div><input type="checkbox" value="bool1" id="check1"/>
		            <label for="check1">Sushi</label></div>
		        	<div><input type="checkbox" value="bool2" id="check2"/>
		        	<label for="check2">Burgers</label></div>
		        	<div><input type="checkbox" value="bool3" id="check3"/>
		        	<label for="check3">Tic Tac</label></div>
		        	<div><input type="checkbox" value="bool4" id="check4"/>
		        	<label for="check4">Crow</label></div>
		        	<div><input type="checkbox" value="bool5" id="check5"/>
		        	<label for="check5">Salad</label></div>
		        	<div><input type="checkbox" value="bool6" id="check6"/>
		        	<label for="check6">Ice Cream</label></div>
		        </div>
		    </div>
	        <div>
	        	Any final thoughts?
	        	<textarea  rows="5" style="resize: none"> </textarea>
	       	</div>
      
	        <div>
	          <input type="submit" id="submit" />
	        </div>

    	</form>
    </div>
</div>
</div>
</body>
              
            
!

CSS

              
                body,
html {
	height: 100%;
  margin: 0px;

  font-family: "Raleway", sans-serif;
  touch-action: manipulation;
  
  font-family: 'Open Sans', sans-serif;

}


.backgroundImage {

	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -2;
	background-image: url('https://wallpaperaccess.com//full/846241.jpg');
}
.backgroundOverlay {
	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;

	background-color: rgba(100, 100, 0 , .3);
	z-index: -1;
}
.outerDiv {
	padding-bottom: 20px;
}

#title {
  font-family: 'Poiret One', cursive;
}

.innerDiv > div{
	padding-left: 10px;
	padding-right: 10px;
}

.innerDiv {

  display: flex;
  flex-direction: column;
  
}

.header {
	color: white;
}

.formContainer {
  background:rgba(255,255,255,0.8);
  font-size: 1.5em;
  color: var(--textShade);
}
.checkboxContainer {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	flex-wrap: wrap;
}
.checkboxContainer > div {
	display: flex;
	align-items: center;

}
form {

}

form > div {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 10px;
  padding-top: 10px;
}

form > div > label{

  flex: 1 0 auto;
}
form > div > input {

  flex: 1 0 auto;
  font-size: 1em;
  border-radius: 5px;

}
form > div > select {
	font-size: 1em;
}
@media (min-width: 576px){

	.innerDiv{
		padding-left: 10%;
		padding-right: 10%;
	}
  .formContainer{

  }
  


}
.themeOne {
    --shade1: #f4f1af;
    --shade2: #e7e283;
    --shade3: #dbd55b;
    --shade4: #dedede;
    --textShade: #385a6e;
}


              
            
!

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