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 id="h">
	<div class="site_discription"></div>
	<div id="fixedBox" class="nav">
		<div class="globalnavi">
			<div class="globalnavi_in cf">
        				<div class="h_logo">
					<h1><a href=""><img class="over" src="http://webkikakutest.com/0103/images/identity-top.png" alt=""/></a></h1>
				</div>
				<ul>
					<li class="gn_02"><a href="#"><img src="http://webkikakutest.com/0103/images/navi-02.png" alt="ナビゲーション01"/></a></li>
				</ul>
				<ul>
					<li class="gn_03"><a href="#"><img src="http://webkikakutest.com/0103/images/navi-03.png" alt="ナビゲーション02"/></a></li>
									</ul>
			</div>
		</div>
	</div>
</div>
<!-- ▲▲▲ヘッダー▲▲▲ --> 
<!-- ▼▼▼コンテンツ▼▼▼ -->
<div id="m">
	<h2>ページをスクロールさせてください。</h2>
</div>
<!-- ▲▲▲コンテンツ▲▲▲ --> 

<!-- ▼▼▼フッター▼▼▼ -->
<div id="f">
	<div class="copyright">コピーライト</div>
</div>
<p class="pagetop"><a href="#wrap"><img class="over" src="http://webkikakutest.com/0103/images/btn-pagetop.png" alt="ページのせ"/></a></p>
<!-- ▲▲▲フッター▲▲▲ -->


              
            
!

CSS

              
                /* =============================================================================
   クリアーフィックス
   ========================================================================== */
/* For modern browsers */
.cf:before, .cf:after { content:""; display:table; }
.cf:after { clear:both; }
/* For IE 6/7 (trigger hasLayout) */
.cf { zoom:1; }



/*
====================================================================================
共通
==================================================================================== */
body {
	font-size: 16px;
	line-height: 1.7;
	color: #000;
	font-family: 'Quicksand', "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro", 'メイリオ' , Meiryo , Osaka, "MS Pゴシック", "MS PGothic", sans-serif;;
	-webkit-text-size-adjust: 100%; /*iPhone等で見た時の文字サイズが調整出来ない対策*/
	-ms-text-size-adjust: 100%; /*iPhone等で見た時の文字サイズが調整出来ない対策*/
}
/*==============================================
リンク
==============================================*/
a {
	outline: none;
}
a:link,
a:visited { color: #4b8fff; text-decoration: underline;}
a:hover,
a:active { color: #4b8fff; text-decoration: none;}

a:hover img{
	opacity: 0.7; /* css3 0.0-1.0 */
	filter: alpha(opacity=70); /* for IE 0-100 */}

/*	a:active {
color:#f00;
	background-color: #fff;
	text-decoration: underline; }*/
a.pdf {
	background-image: url(http://webkikakutest.com/0103/image/share/icon_pdf_mini.gif);
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: right center;
	padding-top: 3px;
	padding-right: 20px;
	padding-bottom: 3px;
}
a.pagetop {
	background-image: url(http://webkikakutest.com/0103/images/share/arrow_big_up.gif);
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: left center;
	height: auto !important;
	min-height: 11px;
	height: 11px;
	padding: 2px 0 2px 16px;
}
a.blank {
	background-image: url(http://webkikakutest.com/0103/images/icon-blank.png);
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: right center;
	margin-right: 4px;
	padding-top: 3px;
	padding-right: 14px;
	padding-bottom: 3px;
}
a span, a#identity em {
	text-indent: -9999px;
	display: block;}

/* ====================================================================================
一般タグ
==================================================================================== */
/*--見出し--*/
h1 {
	font-size: 174%;
	font-weight: bold;
	line-height: 130%;
	/*background-image: url(http://webkikakutest.com/0103/images/share/bg_h1.gif);*/
	background-repeat: no-repeat;
	background-position: left top;
	margin: 0 0 20px;
	padding: 16px 30px 14px 18px;}
h2 {
	color:#48494a;
	font-size: 30px;
	font-weight: bold;
	line-height: 150%;
	margin: 0 0 45px;
	padding: 25px 25px 25px 38px}


/* ====================================================================================
◆ヘッダー
==================================================================================== */
.site_discription {
	text-align:center;
	color:#fff;
	font-size:79%;
	background-color: #71705e;
  height:13px;}
.main_visual_outer {
	background:url(http://webkikakutest.com/0103/images/bg-header-top.png) repeat-x left top;
	padding-top: 24px;}
.main_visual {
	background:url(http://webkikakutest.com/0103/images/mi-01.png) no-repeat center top;
	height:445px;
	padding-top:18px;}
.main_title {
	margin-bottom:10px;}
.main_text {
	margin-bottom:20px}
.mv_in {
	width:564px;
	margin:0 auto;
	text-align:center;} 
.h_logo {
	text-align:center;
	width:270px;
	height:118px;
	float:left;}
.h_logo h1 {
	padding:0;}
.h_logo img {
	padding-top:33px;}


/*グローバルナビゲーション*/
.globalnavi {
	background-color:#48494a;
	/*transition: 200ms;*/}
.globalnavi_in {
	width:640px;
	margin:0 auto;}
.globalnavi_in ul {
	margin-bottom:0;}
.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;}
.gn_01, .gn_02, .gn_03, .gn_04 {
	float: left;
	width: 180px;
	height: 94px;
	margin: 23px 0;
	border-left: 1px solid #697785;
}
.gn_02, .gn_04 {
	border-right:1px solid #697785;}
.gn_01 a, .gn_02 a, .gn_03 a, .gn_04 a, .fn_01 a, .fn_02 a, .fn_03 a {
	display: block;
	text-align: center;
	transition-duration: 0.2s;
	background-position: center 22px;
	background-repeat: no-repeat;
	height: 60px;
	padding: 80px 0 0;
	margin: -23px 0 -13px;}
.gn_01 a {
	background-image:url(http://webkikakutest.com/0103/images/bg-navi-01.png);}
.gn_02 a, .fn_01 a  {
	background-image:url(http://webkikakutest.com/0103/images/bg-navi-02.png);}
.gn_03 a, .fn_02 a {
	background-image:url(http://webkikakutest.com/0103/images/bg-navi-03.png);}
.gn_04 a, .fn_03 a {
	background-image:url(http://webkikakutest.com/0103/images/bg-navi-04.png);}
.globalnavi_in li a:hover,
.globalnavi_in li a.on {
  background-color: #3a3c3e;
 transition: 0.2s;}
.fixed li {
	height: 38px;
	margin: 17px 0;}
.fixed li a {
	margin-top: -84px;}
.h_logo img {
	width:66%;
	transition: 0.2s;}
.fixed .h_logo img {
	width:40%;
	transition: 0.2s;
	padding-top: 13px;}
.fixed .globalnavi {
	height: 72px;
	/*transition: 200ms;*/
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);}
/*フッターのナビ*/	
.f_navi {
	margin-top:20px;
	padding-top:10px;
	border-radius:10px;
	background-color:#fff;}	
.f_navi li {
	float:left;
	width:132px;
	height:75px;}
.f_navi li.fn_02 {
	border-right: 1px solid #d7ecf0;
	border-left: 1px solid #d7ecf0;}

/* ====================================================================================
◆コンテンツ
==================================================================================== */
#m {
	width:640px;
	height:5000px;
	margin:70px auto;
	padding-top:50px;
	background:#ebead7;}

/* ==================================================================================== 
◆フッター
==================================================================================== */
.f_left {
	float:left;}
.f_right {
	float:right;}
.company_profile {
	font-size:12px;
	line-height:}
.company_profile dd {
	margin-bottom:0;}
.copyright {
	font-size:10px;
	font-weight:bold;
	color:#FFFFFF;
	background-color:#000000;
	text-align:center;
	padding:5px 0;}
.pagetop {
    display: none;
    position: fixed;
    bottom: 318px;
    right: 30px;}
              
            
!

JS

              
                jQuery(function($) {
var nav    = $('#fixedBox'),
    offset = nav.offset();
  
$(window).scroll(function () {
  if($(window).scrollTop() > offset.top) {
    nav.addClass('fixed');
  } else {
    nav.removeClass('fixed');
  }
});
});
              
            
!
999px

Console