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 class="centerplease">
		よくある質問 (FAQ)
	</div>
	<br>
	<div class="content">
		<div>
			<input type="checkbox" id="question1" name="q" class="questions">
			<div class="plus">+</div>
			<label for="question1" class="question">
				あなたが得意なプログラム言語は?
			</label>
			<div class="answers">
				C#.Netを使用した業務系アプリケーションのプログラム開発.
			</div>
		</div>
		<div>
			<input type="checkbox" id="question2" name="q" class="questions">
			<div class="plus">+</div>
			<label for="question2" class="question">
				あなたが得意なデータベースは?
			</label>
			<div class="answers">
				データベースは、Oracleが一番得意です.
			</div>
		</div>
		<div>
			<input type="checkbox" id="question3" name="q" class="questions">
			<div class="plus">+</div>
			<label for="question3" class="question">
				あなたがこれからマスターしたいプログラム言語は?
			</label>
			<div class="answers">
				Ruby on Rails
			</div>
		</div>
		<div>
			<input type="checkbox" id="question4" name="q" class="questions">
			<div class="plus">+</div>
			<label for="question4" class="question">
				あなたは今後どうなりたい?
			</label>
			<div class="answers">
				在宅勤務でプログラム開発.
			</div>
		</div>
		<div>
			<input type="checkbox" id="question5" name="q" class="questions">
			<div class="plus">+</div>
			<label for="question5" class="question">
				最後に一言
			</label>
			<div class="answers">
				これからもよろしくお願いします。
			</div>
		</div>
	</div>
              
            
!

CSS

              
                body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	background:#FFFFCC;
}
.content {
	width: 80%;
	padding: 0;
	margin: 0 auto;
}
.centerplease {
	margin: 10px auto;
	max-width: 400px;
	font-size: 40px;
}
/*Question*/
.question {
	position: relative;
	background: #fff;
	margin: 0;
	padding: 10px 10px 10px 50px;
	display: block;
	width:100%;
	cursor: pointer;
}
/*Answer*/
.answers {
	padding: 0px 15px;
	margin: 0 0 10px;
	width:100%!important;
	height: 0;
	overflow: hidden;
	z-index: -1;
	position: relative;
	opacity: 0;
	background: #fff;
	-webkit-transition: .8s ease;
	-moz-transition: .8s ease;
	-o-transition: .8s ease;
	transition: .8s ease;
}
.questions:checked ~ .answers{
	height: auto;
	opacity: 1;
	padding: 15px 45px 15px 15px;
}
/*FAQ Toggle*/
.plus {
	position: absolute;
	margin-left: 10px;
	z-index: 5;
	font-size: 2em;
	line-height: 100%;
	-webkit-user-select: none;    
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	-webkit-transition: .8s ease;
	-moz-transition: .8s ease;
	-o-transition: .8s ease;
	transition: .8s ease;
}
.questions:checked ~ .plus {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.questions {
	display: none;	
}
              
            
!

JS

              
                
              
            
!
999px

Console