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 style="width:45%; display:inline-block;vertical-align: top;">
	<h1 style="text-align: center;">
      MARKETO EMBED FORM
    </h1>
	<script src="http://app-sj20.marketo.com/js/forms2/js/forms2.min.js"></script>
	<form id="mktoForm_1682"></form>
	<script>
		/*
		 * @author swhiteman
		 *
		 * Create a completely barebones, user-styles-only Marketo form
		 * by removing inline STYLE attributes and disabling child STYLE elements
		 */

		MktoForms2.loadForm("http://app-sj20.marketo.com", "589-RIV-055", 1682);
		MktoForms2.whenReady(function(form) {
			var formEl = form.getFormElem()[0],
				_forEach = Function.prototype.call.bind(Array.prototype.forEach);

			// remove element styles from root and children
			_forEach(document.querySelectorAll('#' + formEl.id + ', #' + formEl.id + ' [style]'), function(el) {
				el.removeAttribute('style');
			});

			// disable all Marketo-sourced stylesheets
			_forEach(document.styleSheets, function(ss) {
				var ssLoc = document.createElement('A');
				ssLoc.href = ss.href;

				// external STYLEs and inline STYLEs within <FORM>
				if (/\.marketo\.com$/.test(ssLoc.hostname)) {
					ss.disabled = true;
				} else if ((ss.ownerNode || ss.owningElement).parentNode == formEl) {
					ss.disabled = true;
				}
			});

			formEl.setAttribute('data-styles-ready', '')
		});
	</script>
</div>
<div style="width:9%; display:inline-block;"></div>
<div style="width:45%; display:inline-block;">
	<h1 style="text-align: center;">
      FYRESITE PROVIDED FORM
    </h1>
	<form>
		<!-- TEXT INPUT -->
		<div class="input-group required">
			<label>Text Input</label>
			<input class="input" type="text" placeholder="Text Input">
		</div>

		<!-- EMAIL INPUT -->
		<div class="input-group required">
			<label>Email Input</label>
			<input class="input" type="text" placeholder="Email Input">
		</div>

		<!-- EMAIL INPUT -->
		<div class="input-group required">
			<label>Phone Input</label>
			<input class="input" type="phone" placeholder="Phone Input">
		</div>

		<!-- INPUT WITH ERROR -->
		<div class="input-group required error"> 
			<label>Input with Error</label>
			<input class="input" type="phone" placeholder="(###) ###-####">
			<small class="error-txt">Phone Number Format (###) ###-####</small>
		</div>

		<!-- SELECT INPUT -->
		<div class="input-group required">
			<label>Select Input</label>
			<select class="input">
				<option>1</option>
			    <option>2</option>
			    <option>3</option>
			    <option>4</option>
			    <option>5</option>
			</select>
		</div>

		<!-- TEXTAREA -->
		<div class="input-group">
			<label>Text Area Input</label>
			<textarea class="input" placeholder="Text Area Input"></textarea>
		</div>

		<!-- RADIO -->
		<div class="input-group">
			<label for="radio">Radio Buttons</label>
			<input type="radio" name="radio" value="Selected Radio Button" checked> Selected Radio Button <br>
			<input type="radio" name="radio" value="Radio Button"> Radio Button
		</div>

		<!-- CHECKBOX -->
		<div class="input-group">
			<label for="checkbox">Checkboxes</label>
			<input type="checkbox" name="checkbox" value="Selected Radio Button" checked> Selected Checkbox <br>
			<input type="checkbox" name="checkbox" value="Radio Button"> Checkbox
		</div>

		<!-- SUBMIT -->
		<input class="button" type="submit" value="Submit">
	</form>
</div>
              
            
!

CSS

              
                /* ***************** */
/* ***************** */
/* Design Firm's CSS */
/* ***************** */
/* ***************** */
*{
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}	
body{
	background-color: #f9f9f9;
	font-size: 16px;
	color: #777777;
	font-family: 'Open Sans', sans-serif;
	padding: 15px;
}
.input-group{
	margin-bottom: 15px;
	display: block;
	position: relative;
}
.input-group .input{
	background: #FFFFFF;
	color: #777777;
	border: 1px solid #E5E5E5;
	width: 100%;
	font-size: 14px;
	padding: 15px;
	display: block;
	border-radius: 5px;
	font-weight: 100;
	margin: 0px;
	font-family: 'Open Sans', sans-serif;
}
.input-group label{
	font-weight: 800;
	color: #671E75;
	text-transform: uppercase;
	margin-bottom: 5px;
	display: block;
	font-size: 12px;
}
select.input{
	height: 50px;
}
.select-wrap{
	position: relative;
}
textarea.input{
	min-height: 150px;
}
::-webkit-input-placeholder{ 
  	color: #bbb;
}
::-moz-placeholder{ 
  	color: #bbb;
}
:-ms-input-placeholder{ 
  	color: #bbb; 
}
:-moz-placeholder { 
  	color: #bbb;
}
.input:focus {
	border: 1px solid #671E75;
	outline:none;
}
.button:focus,
input:focus, 
textarea:focus, 
select:focus {
    outline-offset: 0;
    outline:none;
}
.error label,
.error .input:focus,
.error .input,
.error{
	border-color:#D0021B;
	color:#D0021B;
}
.error .error-txt{
	font-weight: 600;
	margin-top: 5px;
	display: block;
}
input[type="submit"],
.button{
	border-radius: 50px;
	color:white;
	font-size: 14px;
	padding: 20px 30px; 
	display: inline-block;
	background: #671E75;
	border:0px;
	font-weight: 800;
	text-transform:uppercase;
	letter-spacing: 2;
	transition: .25s all ease;
	transform: scale(1);
	margin-top: 15px;
}
.button:hover{
	transition: .25s all ease;
	transform: scale(1.1);
}
.required label:after{
	content: ' *'
}

/* ******************************* */
/* ******************************* */
/* Start Custom Styles for Marketo */
/* ******************************* */
/* ******************************* */

.mktoForm {
	display: none;
}

.mktoForm[data-styles-ready] {
	display: block;
}

.mktoFieldWrap{
	margin-bottom: 15px;
	display: block;
	position: relative;
}
.mktoFieldWrap .mktoField{
	background: #FFFFFF;
	color: #777777;
	border: 1px solid #E5E5E5;
	width: 100%;
	font-size: 14px;
	padding: 15px;
	display: block;
	border-radius: 5px;
	font-weight: 100;
	margin: 0px;
	font-family: 'Open Sans', sans-serif;
}
.mktoFieldWrap label{
	font-weight: 800;
	color: #671E75;
	text-transform: uppercase;
	margin-bottom: 5px;
	display: block;
	font-size: 12px;
}

input[type="submit"],
.mktoButton{
	border-radius: 50px;
	color:white;
	font-size: 14px;
	padding: 20px 30px; 
	display: inline-block;
	background: #671E75;
	border:0px;
	font-weight: 800;
	text-transform:uppercase;
	letter-spacing: 2;
	transition: .25s all ease;
	transform: scale(1);
	margin-top: 15px;
}
.mktoButton:hover{
	transition: .25s all ease;
	transform: scale(1.1);
}

.mktoAsterix {
    display: inline-block;
}

.mktoRadioList .mktoField {
  width: 15px;
  float: left;
  clear: left;
  margin-left: 5px;
}

.mktoRadioList label {
  float: left;
  clear: right;
}

.mktoCheckboxList .mktoField[id^="mktoCheckbox"] {
  width: 15px;
  float: left;
  clear: left;
}

.mktoCheckboxList label[for^="mktoCheckbox"] {
  float: left;
  clear: right;
}

.mktoFormRow {
  clear: both;
}

.mktoButtonRow {
  clear: both;
}
              
            
!

JS

              
                /*
 * @author swhiteman
 *
 * Create a completely barebones, user-styles-only Marketo form
 * by removing inline STYLE attributes and disabling child STYLE elements
 */

MktoForms2.loadForm("//app-sj20.marketo.com", "589-RIV-055", 1682);
MktoForms2.onFormRender(function(form) {
	var formEl = form.getFormElem()[0],
		_forEach = Function.prototype.call.bind(Array.prototype.forEach);

	// remove element styles from root and children
	_forEach(document.querySelectorAll('#' + formEl.id + ', #' + formEl.id + ' [style]'), function(el) {
		el.removeAttribute('style');
	});

	// disable all Marketo-sourced stylesheets
	_forEach(document.styleSheets, function(ss) {
		var ssLoc = document.createElement('A');
		ssLoc.href = ss.href;

		// external STYLEs and inline STYLEs within <FORM>
		if (/\.marketo\.com$/.test(ssLoc.hostname)) {
			ss.disabled = true;
		} else if ((ss.ownerNode || ss.owningElement).parentNode == formEl) {
			ss.disabled = true;
		}
	});

	formEl.setAttribute('data-styles-ready', '')
});
              
            
!
999px

Console