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

              
                <!doctype html>
<html>
	
<head>

	<meta charset="UTF-8">

	<title>Kontaktformular</title>

	<link rel="stylesheet" href="contactform.css" type="text/css">

	<link rel="stylesheet" href="http://use.fontawesome.com/releases/v5.9.0/css/all.css">

	<!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
	<script>var __adobewebfontsappname__="dreamweaver"</script>
	<script src="http://use.edgefonts.net/source-sans-pro:n4:default.js" type="text/javascript"></script>
	
	<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
	
	<script src="https://www.google.com/recaptcha/api.js" async defer></script>

</head>

	<body>
		
		<div class="contact-form-wrap">
			
			<div class="contact-form-wrap-left">
				<form action="config.php" method="post" class="contact-form">
					
					<!--Firmenname-->
					<div class="col full-width">
						<div class="input-block">
							<label for="Firmenname">Firmenname</label>
							<input type="text" id="Firmenname" name="Firmenname" class="form-control">
						</div>
					</div>
					
					<!--Anrede - Vorname - Nachname-->
					<div class="col twenty-width">
						<div class="input-block">
							<label class="required" for="Anrede" >Anrede</label>
							<input type="text" id="Anrede" name="Anrede" class="form-control">
						</div>
					</div>
					
					<div class="col forty-width">
						<div class="input-block">
							<label for="Vorname" class="required">Vorname</label>
							<input type="text" id="Vorname" name="Vorname" class="form-control">
						</div>
					</div>
					
					<div class="col forty-width">
						<div class="input-block">
							<label for="Nachname" class="required">Nachname</label>
							<input type="text" id="Nachname" name="Nachname" class="form-control">
						</div>
					</div>
					
					<!--E-Mail-->
					<div class="col full-width">
						<div class="input-block">
							<label for="Mail" class="required">E-Mail</label>
							<input type="text" id="Mail" name="Mail" class="form-control">
						</div>
					</div>
					
					<!--Betreff-->
					<div class="col full-width">
						<div class="input-block">
							<label for="Betreff" class="required">Betreff</label>
							<input type="text" id="Betreff" name="Betreff" class="form-control">
						</div>
					</div>
					
					<!--Mitteilung-->
					<div class="col full-width">
						<div class="input-block textarea">
							<label for="Mitteilung" class="required">Bitte schreiben Sie Ihre Mitteilung hier...</label>
							<textarea name="Mitteilung" id="Mitteilung" class="form-control" rows="6"></textarea>
						</div>
					</div>
					
					<!-- ReCapatcha -->			
				<div class="col full-width">
						<div class="g-recaptcha" data-sitekey="6Lde_q0UAAAAAFXFM0t-kOhJRSC8Q8j7NX1S4fvO" hl="de" style=" display: block; transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>
				</div>

				<!-- SENDEN-KNOPF -->
				<div class="col full-width">
					<div class="input-block">
					</div>
				</div>
					
				</form>
			</div>
			
			<div class="contact-form-wrap-right">
				<div class="business-card">
					<img src="HS_SA.png" alt="Hudson Sky SA">
					<div class="contact-information"><i class="fas fa-phone"></i><a href="tel:+41-81-286-77-77">+41 (0)81 286 77 71</a></div>
					<div class="contact-information"><i class="fas fa-fax"></i><a href="fax:+41-81-286-77-79">+41 (0)81 286 77 79</a></div>
					<div class="contact-information"><i class="fas fa-envelope"></i><a href="mailto:mail@hudson-sky.ch">mail@hudson-sky.ch</a></div>
					<div class="contact-information-address">
						<div class="contact-information-address-col"><i class="fas fa-home"></i></div>
						<div class="contact-information-address-col"> Hudson Sky SA <br> Oberalpstrasse 16 <br> 7000 Chur <br> Schweiz</div>
					</div> 
					<div class="google-maps">
						<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2728.4473184017556!2d9.523278715853094!3d46.85456884761529!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4784c77504286721%3A0xfa52f91aa3448e81!2sHudson+Sky+International+SA!5e0!3m2!1sde!2sch!4v1563139057018!5m2!1sde!2sch" width="100%" height="400px" frameborder="0" style="border:0" allowfullscreen></iframe>
					</div>		
				</div>
			</div>
		
		</div>


	</body>
	
	<script src="contactform.js"></script>
	
</html>
              
            
!

CSS

              
                @charset "UTF-8";
/* CSS Document */

/* Simplify box-sizing */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/*General Body settings as well as for development purposes*/
body {
	width: 100%;
	height: 4000px;
	background-color: #2B2B2B;
	margin: 0;
	padding: 0 auto;
	padding-top: 100px;
	font-family: "source-sans-pro";
	font-style: normal;
	font-weight: 400;
	font-size: medium;
	line-height: 1.25;
}

/*contactform main box */

.contact-form-wrap {
	position: relative;
	width: 90%;
	margin: 0 auto;
	background-color: rgba(255,255,255,1);
	height: 800px;
}

.contact-form-wrap-left {
	position: relative;
	width: calc( 70% - 30px );
	background-color: rgba(151,151,151,0.78);
	height: 760px;
	float: left;
	margin: 20px;
	margin-right: 10px;
}

.contact-form {
	margin-top: 35px;
}

.col {
	float: left;
	position: relative;
	padding: 0 10px;
}

.full-width {
	width: 100%;
}

.twenty-width {
	width: 20%;
}

.forty-width {
	width: 40%;
}

.input-block{
	background-color: rgba(255,255,255,0.80);
	border: solid 2px rgba(18,0,172,1.00);
	width: 100%;
	height: 60px;
	padding: 25px;
	position: relative;
	margin-bottom: 20px;
	-moz-transition: all 0.3s ease-out;
  	-o-transition: all 0.3s ease-out;
  	-webkit-transition: all 0.3s ease-out;
  	transition: all 0.3s ease-out;
}

.focus {
  background-color: white;
}

.input-block label {
  position: absolute;
  left: 25px;
  top: 25px;
  display: block;
  margin: 0;
  font-weight: 300;
  z-index: 1;
  color: #333;
  font-size: 18px;
  line-height: 10px;
}

.input-block label.required::after {
	color: red;
	content: "*";
}

.input-block input[type=text]:focus, textarea:focus {
	box-shadow: none;
	outline: none;
}

.g-recaptcha {
	border: solid 2px rgba(18,0,172,1.00);
	height: 80px;
	width: 306px;
}

.textarea {
	height: 200px;
}

.form-control {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	padding: 0px;
	font-size: 18px;
	line-height: 1.42857143;
	color: #333;
	z-index: 2;
	background-color: transparent;
	border: none;
	resize: none;
}

.form-control:focus label {
	top: 0px;
}

.contact-form-wrap-right {
	position: relative;
	width: calc( 30% - 30px );
	height: 760px;
	float: left;
	margin: 20px;
	margin-left: 10px;
}

.business-card {
	position: relative;
	width: calc( 100% - 20px );
	margin: 0 10px;
	height: 760px;
	padding-top: 20px;
	
}

.business-card img {
	position: relative;
	display: block;
	width: calc( 80% - 20px);
	padding-top: 20px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom:20px;
  max-height: 100px;
}

.google-maps {
	width: 100%;
	margin: 0 auto;
	padding-top: 10px;
}

.contact-information {
	display: block;
	width: 100%;
	margin: 0 auto;
	height: 40px;
	text-align: left;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 2px;
}

.contact-information i {
	padding-right: 10px;
}

.contact-information a { 
	color: black;
	text-decoration: none;
}

.contact-information-address {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 auto;
	height: 100px;
	text-align: left;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 2px;
}

.contact-information-address i {
	padding-right: 10px;
}

.contact-information-address-col {
	display: inline-block; 
	float: left; 
	width: auto
}



              
            
!

JS

              
                // JavaScript Document
$('.contact-form').find('.form-control').each(function() {
  var targetItem = '.input-block';
  if ($(this).val()) {
    $(targetItem).find('label').css({
      'top': '10px',
      'fontSize': '14px'
    });
  }
})

$('.contact-form').find('.form-control').focus(function() {
  $(this).parent('.input-block').addClass('focus');
  $(this).parent().find('label').animate({
    'top': '10px',
    'fontSize': '14px'
  }, 300);
})

$('.contact-form').find('.form-control').blur(function() {
  if ($(this).val().length == 0) {
    $(this).parent('.input-block').removeClass('focus');
    $(this).parent().find('label').animate({
      'top': '25px',
      'fontSize': '18px'
    }, 300);
  }
})
              
            
!
999px

Console