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> Lorem ipsum dolor
				sit amet, consectetur adipisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit amet, consectetpisicing elit. Ipsa, repudiandae? <br> Lorem ipsum dolor sit adae? <br> Lorem ipsum dolor sit amet, consectetur adipisicing 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>


<div id="layer" class="layer-wrap">
	<div class="layer-outer">
		<div class="layer-inner">
			<div class="layer-pop">
				<div class="layer-box">
					<p class="text_notify"> 영상 초반에 연령등급 고지되어 있습니다. </p>
					<div class="check_section">
						<input type="checkbox" id="chk1" name="" class="chk_notify">
						<label for="chk1" class="label_notify">해당 내용을 숙지하였습니다.</label>
						<div class="btn_area">
							<a href="#" class="btn">확인</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="dimmed"></div>
</div>
<!--<div class="dimmed"></div>-->
              
            
!

CSS

              
                * {
	margin: 0;
	padding: 0;
}


/* Define Layout */

#wrap {
	width: 900px;
	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: 220px;
	height: 400px;
}

#content {
	float: right;
	width: 620px;
	padding: 0 10px 10px 10px;
	text-align: left;
	height: 500px;
}


/**
* ==========================================================+
* Layer-popup Center Box - http://http://webclub.tistory.com
* Copyright © 2016 Jae Hee Kim
* All rights reserved.
* ==========================================================+
*/

.layer-wrap {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100
}

.layer-wrap .layer-outer {
	display: table;
	width: 100%;
	height: 100%;
}

.layer-wrap .layer-inner {
	display: table-cell;
	text-align: center;
	/* 가로 중앙 정렬*/
	vertical-align: middle;
	/* 세로 중앙 정렬 */
}

.layer-wrap .layer-pop {
	display: inline-block;
}

.layer-wrap .layer-box {
	padding: 36px 40px;
	width: 320px;
	background-color: #fff;
	border: 1px solid #8c8c8c;
	z-index: 10;
}

.layer-wrap .btn_area {
	display: block;
	margin-top: 22px;
}

.layer-wrap .btn_area .btn {
	display: inline-block;
	min-width: 154px;
	height: 49px;
	font-size: 16px;
	color: #000;
	background-color: #fff;
	border: 1px solid #a7afb7;
	border-radius: 3px;
	line-height: 49px;
	vertical-align: top;
}


/* dimmed 처리는 선택적으로 사용 */

.layer-wrap .dimmed {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: #000;
	opacity: .3;
	filter: alpha(opacity=30);
	z-index: -1;
}

.dimmed {
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: .3;
	filter: alpha(opacity=30);
	z-index: 101;
}
              
            
!

JS

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

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

Console