cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <head>
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=9" />

	<title>[ABCD] 처음배우는 HTML, CSS - sample html</title>

	<meta name="keywords" content="사이트,키워드" />
	<meta name="description" content="사이트 설명" />

	<link rel="stylesheet" media="screen" href="sample-css.css" />
	<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
	<div id="wrapper">
		<!-- header -->
		<header>
			<h1>[ABCD] 처음배우는 HTML, CSS - sample html</h1>
			<p>Page Description</p>
			<nav>
				<ul>
					<li><a href="#">HOME</a></li>
				</ul>
			</nav>
		</header>
		<!-- /header -->
		<!-- main -->
		<main id="main">
			<section class="main-section">
				<h2>Page Section Title</h2>
				<!-- article 01 -->
				<article class="sub-article_01">
					<h3>Article Title</h3>
					<div class="sub-box">
						<h4>Div Title</h4>
						<p><img src="https://app.box.com/representation/file_version_26635547706/image_2048_jpg/1.jpg" alt=""></p>
						<p><img src="https://app.box.com/representation/file_version_26635546744/image_2048/1.png" alt=""></p>
					</div>
				</article>
				<!-- /article 01 -->
				<!-- article 02 -->
				<article class="sub-article_02">
					<h3>Article Title</h3>
				</article>
				<!-- /article 02 -->
			</section>
		</main>
		<!-- /main -->
		<!-- aside -->
		<aside class="aside">
			<h3>Aside</h3>
		</aside>
		<!-- /aside -->
		<!-- footer -->
		<footer>
			<nav>
				<div>
					<a href="#">LINK</a>
					<a href="#">LINK</a>
				</div>
			</nav>
			<a href="URL" rel="license">라이센스</a>
			<p>Copyright @ 2015</p>
		</footer>
		<!-- footer -->
	</div>
</body>

            
          
!
            
              /* ---------------------------------
[ABCD 처음배우는 HTML, CSS]
2015.03.14 - HTML
2015.03.21 - CSS
2015.03.28 - HTML + CSS
--------------------------------- */

/* ---------------------------------
SAMPLE RESET
--------------------------------- */
header, article, section, nav, footer, div,
body, h1, h2, h3, h4, h5, h6, ul, ol, aside,
a, li, img, p, span, main, hgroup, figure, time {
	margin: 0; padding: 0;
}
ol, li {
	list-style-type: none;
}

/* ---------------------------------
SAMPLE DEFAULT LAYOUT
--------------------------------- */
header, main, footer {
	display: block;
}
header {
	background: #AAA;
	width: 90%;			/* padding:5%를 합해 100% */
}
section {
	background: #EEE;
}
main {
	width: 70%;
	float: left;
	background: #CCC;
}
aside {
	width: 30%;
	float: right;
	background: #CFCFCF;
}
footer {
	width: 90%;
	clear: both;
	background: #AAA;
}

/* ---------------------------------
Wrapper - 여기서부터 페이지용 CSS
--------------------------------- */
#wrapper {
	max-width: 940px;	/* 최대치 */
	margin: 0 auto;
	padding: 5%;
}
header, footer {
	padding: 5%;
}
.main-section {
	padding: 5%;
}
.sub-article_01,
.sub-article_02 {
	padding: 5%;
	border: 1px solid #CCC;
}
.aside {
	/*border: 1px solid #CCC;*/
}

            
          
!
999px
Loading ..................

Console