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

              
                <!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">
    <title>Survey Page FCC</title>
    <link rel="stylesheet" href="survey.css">
</head>

<body>


<!-- Form -->
<section class="container">
    <!-- Outside of the form -->
    <section class="hero">
        <h1 id="title"><span>Hahne</span> Web Solutions</h1> <!-- User Story #1-->
        <p id="description">Why wait another day? Your dream starts now!</p> <!-- User Story #2-->
    </section>

    <div class="wrapper">
        <div class="business-info">
                <h3>Hahne Web Solutions</h3>
                <ul>
                    <li>5555 street 710 Way</li>
                    <li>8675309</li>
                    <li>Email@HahneWebSolutions.test</li>
                </ul>
            </div>  
        
        <div class="contact-form">
            <form id="survey-form"> <!-- User Story # 3-->
        <!-- User Info -->
                <p> <!-- User Story #4:-->
                    <label for="name" id="name-label">Name</label>
                    <input type="text" id="name" placeholder="Enter Your Name" required>
                </p>

                <p> <!-- User Story #5:-->
                    <label for="email" id="email-label">Email</label>
                    <input type="email" id="email" placeholder="Enter Your Email" required> <!--User Story #6:-->
                </p>


                <p> <!--User Story #7:-->
                    <label for="age" id="number-label">Age</label>
                    <input type="number" id="number" placeholder="Age" min="16" max="80" required> <!-- User Story #8: & User Story #9: -->
                </p>
        <!-- User Story #10: & User Story #11: ^^ -->

        <!-- Dropdown -->
                <div class="dropdown">
                    <label for="dropdown">How did you find Hahne Solutions</label>
                <p> <!--User Story #12: -->
                    <select name="dropdown" id="dropdown">
                        <option value="">Word of Mouth</option>
                        <option value="">Twitter</option>
                        <option value="">Saw an Ad</option>
                        <option value="">Google Search</option>
                        <option value="">Youtube</option>
                    </select>
                </p>
                </div>
                

        <!-- Radio Buttons -->
                <div class="radio"> <!-- User Story #13: & User Story #14:-->
                    <h3>Select Your Web Solution</h3>
                    <p>
                        <label for="Website">Website</label>
                        <input type="radio" id="Website" name="services" value="Website">
                    </p>

                    <p>
                        <label for="Design">UI/UX Design</label>
                        <input type="radio" id="Design" name="services" value="Design">
                    </p>

                    <p>
                        <label for="Marketing">SEO/Marketing</label>
                        <input type="radio" id="Marketing" name="services" value="Marketing">
                    </p>
            </div>

        <!-- Checkboxes  -->
        
            <div class="checkbox">
                <h3 class="heading">Additoinal Web Solutions</h3>
                
                
                    <p>
                        <label>Tech Support</label>
                        <input type="checkbox" value="Tech Support">
                    </p>

                    <p>
                        <label>Web Application</label>
                        <input type="checkbox" value="Web Application">
                    </p>

                    <p>
                        <label>Mobile Application</label>
                        <input type="checkbox" value="Mobile Application">
                    </p>

                    <p>
                        <label>Copy Writing</label>
                        <input type="checkbox" value="Copy Writing">
                    </p>

                    <p>
                        <label>Public Speaking</label>
                        <input type="checkbox" value="Public Speaking">
                    </p>
               
                    

                <p>
                  <label>1 on 1 Coaching</label>
                  <input type="checkbox" value="1 on 1 Coaching">
                </p>

                <p>
                  <label>Group Coaching</label>
                  <input type="checkbox" value="Group Coaching">
                </p>

                <p>
                  <label>Logo Design</label>
                  <input type="checkbox" value="Logo Design">
                </p>

                <p>
                  <label>Photography</label>
                  <input type="checkbox" value="Photography">
                </p>

                <p>
                  <label>Videography</label>
                  <input type="checkbox" value="Videography">
                </p>
                
            </div>  
            
        <!-- Text area  -->

            <p class="comments" class="full"> <!--User Story #15-->
                <fieldset class="full">
                    <legend>Your comments</legend>
                <p><textarea placeholder="Share Your Thoughts"></textarea></p>
                </fieldset>
            </p>

            <p class="full">
                <button id="submit">Submit!</button>
            </p>






            </form> 
        </div>
    </div>
</section>


   
</body>
</html>
              
            
!

CSS

              
                /* Default Styling  */
* {
    box-sizing: border-box;
    text-align: center;
   
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.5;
    background-color: #333;
    padding: 1em;
}

.container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
}

.wrapper {
    box-shadow: 0 0 20px 0 rgba(72,94,116,1.7);
    background:lightslategray;
    font-size: 1em;

}

.wrapper > * {
    padding: 1em;
    text-align: center;
    
}

ul {
    list-style-type: none;
    padding: 0;
}

.hero {
    color: #fff;
    font-size: 2rem;
    text-align: center;
    padding-bottom: 1em;
}

.hero p {
    font-size: 1rem;    
}

#title span {
    color: lightgreen;
}

.business-info {
    background-color:lightsteelblue
}

/* Form styles */

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.contact-form form label {
    display: block;
}
.contact-form form p {
    margin: 0;
}

.contact-form form .full {
    grid-column: 1 / 3;
}

.contact-form form button, .contact-form form input, .contact-form textarea, .contact-form #dropdown {
    width: 100%;
}

#name, #email, #number, #dropdown, #submit{
  padding:1em;
}

/* Radio buttons  */

div .radio h3 {
    grid-column: 1 /3;
    text-align: center;
    font-size: 2em;
}

div .radio {
    grid-column: 1 / 3;
}
div .radio {
    width: 100%;
}

/* Checkbox */

.checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.checkbox h3 {
    grid-column: 1 / 3;
}

div .checkbox h3 {
    text-align: center;
    font-size: 2em;
}

div .checkbox {
    display: grid;
    grid-column: 1 / 3;
}
div .checkbox {
    width: 100%;
}


@media (min-width: 1025px) and (max-width: 2000px) {

    body {
        font-size: 1.0rem;
    }
    .wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr;

    }

    .hero {
        font-size: 3em;
    }

    .hero p {
        font-size: 1em;
    }

    .business-info {
        display: flex;
        flex-direction: column;
        justify-content: start;
        font-size: 2em;
        

        }
        
    
    
     
 }
              
            
!

JS

              
                
              
            
!
999px

Console