Pen Settings



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


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


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.


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.


    <title>Shadow Dairy - Subscription</title>
    <link rel="icon" type="image/x-icon" href="./favicon.ico/people-carry.ico" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="styles.css" />
    <link rel="stylesheet" href="./Font Awesome Library/css/all.css" />
    <div class="navbar">
           <a href="welcome.html"><i class="fas fa-home fa-4x" style="color:rgb(51, 118, 219); text-shadow: 2px 2px 4px;"></i></a><br><br>
            <a href="subscribe.html"><i class="fas fa-people-carry fa-4x" style="color:rgb(51, 118, 219); text-shadow: 2px 2px 4px;"></i></i></a><br><br>
            <a href="contact.html"><i class="far fa-address-book fa-4x" style="color:rgb(51, 118, 219); text-shadow: 2px 2px 4px;"></i></a><br><br>
      <header>Subscribe To Our Delivery Service</header>
      <h3>Thank You</h3>
      <form id="main-form2" action="">
        <p>Please Select Your Milk:</p>
        <div id="radio-buttons">
            <input type="radio" id="radio1" name="Full" value="Full">Full<br><br>
            <input type="radio" id="radio2" name="2%" value="2%">2%<br><br>
            <input type="radio" id="radio3" name="Fat Free" value="Fat Free">Fat Free<br><br>
            <input type="radio" id="radio4" name="Chocolate" value="Chocolate">Chocolate<br><br>
            <input type="number" id="gallon-bottles" name="Gallons">  Gallons Of Milk<br><br>
            <input type="checkbox" id="main-checkbox" class="main-checkbox" value="Ice">  Ice?<br><br>
            <button id="main-submit2" type="button" onclick="parseUserData2()">Submit</button>
            <p id="res2"></p>
      <footer id="footer1">Created By Austin Spraggins</footer>
      <script src="script1.js"></script>


                header {
    color: rgb(52, 86, 139);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 40px;
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 1;
    text-align: center;
    text-shadow: 1px 1px 2px;
    text-decoration: underline;

body {
    background-color: RGB(223, 207, 190);

p, h1, h2, h3 {
    font-family: 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    text-indent: 30px;
    text-align: center;

nav {
    margin-top: 0.5px;
    margin-bottom: 2px;
    width: 6%;
    position: fixed;
    left: 0;
    z-index: auto;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    height: 120vh;
    background-color: RGB(146, 168, 209);
    border-radius: 12px;
    border-top: 2px;
    padding: 10px;

nav a:hover {
    background-color: bisque;
.active {
    background-color: #394bec;

#main-form, #main-form2 {
    border-radius: 5px;
    box-shadow: 0, 2px 2px 2px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;

#main-form, #main-label, #main-form2 {
    font-family: 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    text-indent: 30px;
    margin: 0;
    text-align: center;

#main-submit, #main-submit2 {
    width: 150px;
    height: 36px;
    border-radius: 18px;
    background-color: #1c89ff;
    border: solid 1px transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: all .1s ease-in-out;
    box-shadow: 0px 4px 8px black;
    text-align: center;

#main-submit:hover {
      background-color: transparent;
      border-color: #fff;
      transition: all .1s ease-in-out;

#main-submit2:hover {
    background-color: transparent;
    border-color: #fff;
    transition: all .1s ease-in-out;
#radio-buttons {
    text-align: center;
    width: 100%;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
    position: absolute;
    font-size: 18px;


                function parseUserData() {
    var userData = document.getElementById("main-input").value;
    var res = `Your Estimated Cost Per Month Is: $${userData * 4}`;
    document.getElementById("res1").innerHTML = res;

function parseUserData2() {
    var radio1 = document.getElementById("radio1").value;
    var radio2 = document.getElementById("radio2").value;
    var radio3 = document.getElementById("radio3").value;
    var radio4 = document.getElementById("radio4").value;
    var gallonsOfMilk = document.getElementById("gallon-bottles").value;
    var checkbox1 = document.getElementById("main-checkbox").value;
    var radio = '';
        if (document.getElementById("radio1").checked) {
            radio = document.getElementById("radio1").value;
        } else if (document.getElementById("radio2").checked) {
                radio = document.getElementById("radio2").value;
        } else {
            radio = document.getElementById("radio3").value;
         if (document.getElementById("radio4").checked) {
            radio = document.getElementById("radio4").value;
        if (document.getElementById("main-checkbox").checked) {
            checkbox1 = document.getElementById("main-checkbox").value;
        else {
            checkbox1 = document.getElementById("main-checkbox").checked = false;
                document.getElementById("res2").innerHTML = `${`Your Order Summary: <br>Your Milk Preference: ${radio}<br>Number Of Gallons: ${gallonsOfMilk}<br>Requires Ice: ${checkbox1}<br>`}`;

function parseUserData3() {
    var messageBox1 = document.getElementById("messageBox").value;
    var res3 = "Thank You For Sending Us Your Message";
    document.getElementById("res3").innerHTML = res3;