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

              
                <body>
    <div id="container">
        <div class="innerContainer">
            <div class="contactForm">
                <form>
                    <h1>SEND US A <br>MESSAGE</h1>
                    <p class="name">
                        <input type="text" placeholder="Type your full name">
                    </p>
                    <p class="email">
                        <input type="email" placeholder="Email address">
                    </p>
                    <p>
                        <textarea cols="30" rows="10" placeholder="More information will be helpful"></textarea>
                    </p>
                    
                    <button>SUBMIT</button>
                </form>

                <div class="moreInfo">
                    <h1>HERE IS MORE <br>INFORMATION<span>&#9632;</span></h1>
                    <p>Feal free to get in touch with us...</p>
                    <p class="city">
                        <i class="fas fa-map-marker-alt"></i>
                        <span>Pune</span>
                        <p class="cityText">JSPMS RSCOE</p>
                    </p>
                    <p><a href="info@example.com"><i class="fas fa-envelope"></i>info@example.com</a></p>
                    <p><i class="fas fa-phone"></i>956546546546</p>
                    <p class="socialIcons">
                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-google"></i></a>
                    </p>
                </div>
            </div>
        </div>
    </div>
</body>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: white;
  background-position: center center;
  background-size: 100%;
}
#container {
  width: 60%;
  margin: 20px auto 150px auto;
}
p {font-size: 12px;}
h1 {font-size: 25px;}
a {
  text-decoration: none;
  color: #fff;
}

/* === CONTACTFORM === */
.contactForm {
  background-color: coral;
  width: 80%;
  padding: 20px;
  border-radius: 10px;
  position: relative;
}
.contactForm form {
  width: 60%;
  padding: 50px 30px 70px 30px;
}
.contactForm .name input,
.contactForm .email input,
.contactForm textarea {
  width: 100%;
  height: 25px;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 5px 0 5px 10px;
  color: #5a5a5a;
}
.contactForm .name input:focus,
.contactForm .email input:focus,
.contactForm textarea:focus {
  outline: none;
  border: 1px solid #097770;
}
.contactForm textarea {
  height: 80px;
  resize: none;
}
::placeholder {
  color: #aaa;
}
.contactForm .service span {
  margin-right: 20px;
}
.contactForm .service label {
  margin-left: 10px;
  font-size: 12px;
}
.contactForm button {
  float: right;
  background-color: red;
  padding: 10px 15px;
  border: #b8956d;
  color: #fff;
  clear: both;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 0 1px #b8956d 0 0 10px #b8956d;
  margin-top: 20px;
}
.contactForm button:focus {
  outline: none;
}

/* === MOREINFO === */
.moreInfo {
  background-color: #097770;
  width: 230px;
  color: #fff;
  padding: 70px 40px;
  border-radius: 10px;
  position: absolute;
  top: 100px;
  right: -150px;
  box-shadow: 0 0 0 #777777, 0 0 20px #777777;
}
.moreInfo h1 span {
  font-size: 10px;
  color: #b8956d;
}
.moreInfo p i {
  margin-right: 10px;
  color: #b8956d;
}
.moreInfo .city span {
  font-size: 16px;
  font-weight: bold;
}
.moreInfo .cityText {
  margin-left: 23px;
}
.moreInfo .socialIcons i {
  color: #fff;
  font-size: 15px;
  margin: 20px 30px 0 0;
}
.moreInfo .socialIcons i:hover{
 background: #ff568c;
}

/* === MEDIA QUERIES 1000PX === */
@media only screen and (max-width: 1000px) {
  #container {width: 90%;}
  .contactForm {width: 70%;}
}

/* === MEDIA QUERIES 700PX === */
@media only screen and (max-width: 700px) {
  .contactForm {
    width: 100%;
    box-sizing: border-box;
  }
  .contactForm form {
    width: 100%;
    box-sizing: border-box;
  }
  .moreInfo {
    top: 550px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .contactForm .service span {
    display: block;
    margin-bottom: 5px;
  }
  .contactForm .service span br {
    display: none;
  }
  .contactForm .service label {
    margin-left: 0;
    font-size: 12px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console