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

              
                <div class="container">
	<div class="map">
		<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d13249.247068040606!2d151.20960562674117!3d-33.8816236491114!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1spt-BR!2sbr!4v1468899355787" width="100%" height="650px" frameborder="0" style="border:0" allowfullscreen></iframe>
	</div>
	<div class="contact-form">
		<h1 class="title">Contact Us</h1>
		<h2 class="subtitle">We are here assist you.</h2>
		<form action="">
			<input type="text" name="name" placeholder="Your Name" />
			<input type="email" name="e-mail" placeholder="Your E-mail Adress" />
			<input type="tel" name="phone" placeholder="Your Phone Number"/>
			<textarea name="text" id="" rows="8" placeholder="Your Message"></textarea>
			<button class="btn-send">Get a Call Back</button>
		</form>
	</div>
</div>
              
            
!

CSS

              
                // Config colors
$bg-color: #FFFFFF
$text-color: #242424
$input-color: #B7B7B7
$btn-color: #A383C9
$container-color: #F8F8F8

$bg-color-gradient: linear-gradient(to bottom, #abbaab , #ffffff)

// Fonts
@import 'https://fonts.googleapis.com/css?family=Libre+Franklin:400,700'
$font-default: 'Libre Franklin', sans-serif
// config global
html,
body
	background: $bg-color
	font-family: 'Libre Franklin', sans-serif
	
.container
	background: $container-color
	width: 900px
	height: 650px
	margin: 5% auto
	box-shadow: 0px 0px 10px #C8C7D9
	position: relative
	
	.map
		width: 45%
		float: left
	.contact-form
		width: 53%
		margin-left: 2%
		float: left
		.title
			font-size: 2.5em
			font-family: $font-default
			font-weight: 700
			color: $text-color
			margin: 5% 8%
		.subtitle
			font-size: 1.2em
			font-weight: 400
			margin: 0 4% 5% 8%
		
		input,
		textarea
			width: 330px
			padding: 3%
			margin: 2% 8%
			color: $text-color
			border: 1px solid $input-color
			&::placeholder
				color: $text-color
		.btn-send
			background: $btn-color
			width: 180px
			height: 60px
			color: $container-color
			font-weight: 700
			margin: 2% 8%
			border: none
	
              
            
!

JS

              
                // Inspired by http://uidsgn.co/inspiration/contact-form-nn.html
              
            
!
999px

Console