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

              
                <div id="wrap">
	<p>#wrap</p>
	<!-- Start : header -->
	<div id="header">
		<p>#header</p>
	</div>
	<!-- End : header -->
	<!-- container -->
	<div id="container">
		<p>#container</p>
		<!-- snb -->
		<div class="snb">
			<p>.snb</p>
		</div>
		<!-- // snb -->
		<!-- Start : content -->
		<div id="content">
			<p>#content</p><br>
			<div>
				Lorem ipsum dolor sit amet,etur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit tetur adipisicing elit. udiandae? <br> Lorem ipsum dolor sit tetur adipisicing
				elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolipisicing elit. Ipsa, repudiandae? <br>				Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit amet, consectetur adipisicing elit.
				Ipsa, repudiandae? <br> Lorem ipsum dolor sit amr adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit ng elit. Ipsa, repudiandae? <br> <br>
				<a href="#layer" class="btn-layer">레이어 팝업보기</a>
			</div>
		</div>
		<!-- End : content -->
	</div>
	<!-- // container -->
	<!-- Start : footer -->
	<div id="footer">
		<p>#footer</p>
	</div>
	<!-- End : footer -->
</div>

<!-- Start : layer-popup content -->
<div id="layer" class="layer-wrap">
	<div class="pop-layer">
		<div class="pop-container">
			<div class="pop-conts">
				<!--content //-->
				<p class="ctxt mb20">
					Thank you.<br> 
					Your registration was submitted successfully.<br> 
					Selected invitees will be notified by e-mail on JANUARY 24th.<br><br> 
					Hope to see you soon!
				</p>

				<div class="btn-r">
					<a href="#" class="btn-layerClose">Close</a>
				</div>
				<!--// content-->
			</div>
		</div>
	</div>
</div>
<!-- End : layer-popup content -->
              
            
!

CSS

              
                * {
    margin: 0;
    padding: 0;
}
/* Define Layout */
#wrap {
    width: 700px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #bdbdbd;
    background-color: #f7f7f7;
}
#wrap p {
    font-weight: bold;
}
#header,
#container,
#footer {
    padding: 15px;
    background-color: #e5e5e5;
    border: 1px solid #bfbfbf;
    margin-bottom: 10px;
    color: #2d2d2d;
    font-family:Tahoma;
    font-size: 14px;
}
#header {
    padding: 10px;
    margin-top: 10px;
}
#container:before,
#container:after {
    display: table;
    content:""
}
#container:after {
    clear: both;
}
.snb, #content {
    margin-top: 10px;
    background-color: #fff;
    border: 1px solid #bdbdbd;
    text-align: center;
}
.snb {
    float: left;
    width: 120px;
    height: 200px;
}
#content {
    float: right;
    width: 520px;
    padding: 0 10px 10px 10px;
    text-align: left;
    height: 350px;
}
    
/**
 * ==============================+
 * Style : layer-popup
 * ==============================+
 */

.layer-wrap {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
}
.layer-wrap:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -.25em;
}
.pop-layer {
    display: inline-block;
    vertical-align: middle;
    width: 500px;
    height: auto;
    background-color: #fff;
    border: 5px solid #3571B5;
    z-index: 10;
    font-family:Tahoma;
}
.pop-layer .pop-container {
    padding: 20px 25px;
}
.pop-layer .btn-r {
    width: 100%;
    margin: 10px 0 20px;
    padding-top: 10px;
    border-top: 1px solid #DDD;
    text-align: right;
}
a.btn-layerClose {
    display: inline-block;
    height: 25px;
    padding: 0 14px 0;
    border: 1px solid #304a8a;
    background-color: #3f5a9d;
    font-size: 13px;
    color: #fff;
    line-height: 25px;
}
              
            
!

JS

              
                 /**
  * ==============================+
  * 테스트용 스크립트
  * ==============================+
  */

 $('.btn-layer').on('click', function() {
 	var target = $(this).attr('href');
 	$(target).fadeIn();
 });
 $('.btn-layerClose').on('click', function() {
 	$('.layer-wrap').fadeOut();
 });
              
            
!
999px

Console