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="japan-map" class="clearfix">
	<div id="hokkaido-touhoku" class="clearfix">
		<p class="area-title">北海道・東北</p>
		<div class="area">
			<a href="#card-hokkaido">
				<div id="hokkaido" class="badge">
					<p>北海道</p>
				</div>
			</a>
			<a href="#card-aomori">
				<div id="aomori" class="badge">
					<p>青森</p>
				</div>
			</a>
			<a href="#card-akita">
				<div id="akita" class="badge">
					<p>秋田</p>
				</div>
			</a>
			<a href="#card-iwate">
				<div id="iwate" class="badge">
					<p>岩手</p>
				</div>
			</a>
			<a href="#card-yamagata">
				<div id="yamagata" class="badge">
					<p>山形</p>
				</div>
			</a>
			<a href="#card-miyagi">
				<div id="miyagi" class="badge">
					<p>宮城</p>
				</div>
			</a>
			<a href="#card-fukushima">
				<div id="fukushima" class="badge">
					<p>福島</p>
				</div>
			</a>
		</div>
	</div>
	<div id="kantou">
		<p class="area-title">関東</p>
		<div class="area">
			<a href="#card-gunma">
				<div id="gunma" class="badge">
					<p>群馬</p>
				</div>
			</a>
			<a href="#card-tochigi">
				<div id="tochigi" class="badge">
					<p>栃木</p>
				</div>
			</a>
			<a href="#card-ibaraki">
				<div id="ibaraki" class="badge">
					<p>茨城</p>
				</div>
			</a>
			<a href="#card-saitama">
				<div id="saitama" class="badge">
					<p>埼玉</p>
				</div>
			</a>
			<a href="#card-chiba">
				<div id="chiba" class="badge">
					<p>千葉</p>
				</div>
			</a>
			<a href="#card-tokyo">
				<div id="tokyo" class="badge">
					<p>東京</p>
				</div>
			</a>
			<a href="#card-kanagawa">
				<div id="kanagawa" class="badge">
					<p>神奈川</p>
				</div>
			</a>
		</div>
	</div>
	<div id="chubu" class="clearfix">
		<p class="area-title">中部</p>
		<div class="area">
			<a href="#card-nigata">
				<div id="nigata" class="badge">
					<p>新潟</p>
				</div>
			</a>
			<a href="#card-toyama">
				<div id="toyama" class="badge">
					<p>富山</p>
				</div>
			</a>
			<a href="#card-ishikawa">
				<div id="ishikawa" class="badge">
					<p>石川</p>
				</div>
			</a>
			<a href="#card-fukui">
				<div id="fukui" class="badge">
					<p>福井</p>
				</div>
			</a>
			<a href="#card-nagano">
				<div id="nagano" class="badge">
					<p>長野</p>
				</div>
			</a>
			<a href="#card-gifu">
				<div id="gifu" class="badge">
					<p>岐阜</p>
				</div>
			</a>
			<a href="#card-yamanashi">
				<div id="yamanashi" class="badge">
					<p>山梨</p>
				</div>
			</a>
			<a href="#card-aichi">
				<div id="aichi" class="badge">
					<p>愛知</p>
				</div>
			</a>
			<a href="#card-shizuoka">
				<div id="shizuoka" class="badge">
					<p>静岡</p>
				</div>
			</a>
		</div>
	</div>
	<div id="kinki" class="clearfix">
		<p class="area-title">近畿</p>
		<div class="area">
			<a href="#card-kyoto">
				<div id="kyoto" class="badge">
					<p>京都</p>
				</div>
			</a>
			<a href="#card-shiga">
				<div id="shiga" class="badge">
					<p>滋賀</p>
				</div>
			</a>
			<a href="#card-osaka">
				<div id="osaka" class="badge">
					<p>大阪</p>
				</div>
			</a>
			<a href="#card-nara">
				<div id="nara" class="badge">
					<p>奈良</p>
				</div>
			</a>
			<a href="#card-mie">
				<div id="mie" class="badge">
					<p>三重</p>
				</div>
			</a>
			<a href="#card-wakayama">
				<div id="wakayama" class="badge">
					<p>和歌山</p>
				</div>
			</a>
			<a href="#card-hyougo">
				<div id="hyougo" class="badge">
					<p>兵庫</p>
				</div>
			</a>
		</div>
	</div>
	<div id="tyugoku" class="clearfix">
		<p class="area-title">中国</p>
		<div class="area">
			<a href="#card-tottori">
				<div id="tottori" class="badge">
					<p>鳥取</p>
				</div>
			</a>
			<a href="#card-okayama">
				<div id="okayama" class="badge">
					<p>岡山</p>
				</div>
			</a>
			<a href="#card-shimane">
				<div id="shimane" class="badge">
					<p>島根</p>
				</div>
			</a>
			<a href="#card-hiroshima">
				<div id="hiroshima" class="badge">
					<p>広島</p>
				</div>
			</a>
			<a href="#card-yamaguchi">
				<div id="yamaguchi" class="badge">
					<p>山口</p>
				</div>
			</a>
		</div>
	</div>
	<div id="shikoku" class="clearfix">
		<p class="area-title">四国</p>
		<div class="area">
			<a href="#card-kagawa">
				<div id="kagawa" class="badge">
					<p>香川</p>
				</div>
			</a>
			<a href="#card-ehime">
				<div id="ehime" class="badge">
					<p>愛媛</p>
				</div>
			</a>
			<a href="#card-tokushima">
				<div id="tokushima" class="badge">
					<p>徳島</p>
				</div>
			</a>
			<a href="#card-kouchi">
				<div id="kouchi" class="badge">
					<p>高知</p>
				</div>
			</a>
		</div>
	</div>
	<div id="kyusyu" class="clearfix">
		<p class="area-title">九州・沖縄</p>
		<div class="area">
			<a href="#card-fukuoka">
				<div id="fukuoka" class="badge">
					<p>福岡</p>
				</div>
			</a>
			<a href="#card-saga">
				<div id="saga" class="badge">
					<p>佐賀</p>
				</div>
			</a>
			<a href="#card-nagasaki">
				<div id="nagasaki" class="badge">
					<p>長崎</p>
				</div>
			</a>
			<a href="#card-oita">
				<div id="oita" class="badge">
					<p>大分</p>
				</div>
			</a>
			<a href="#card-kumamoto">
				<div id="kumamoto" class="badge">
					<p>熊本</p>
				</div>
			</a>
			<a href="#card-miyazaki">
				<div id="miyazaki" class="badge">
					<p>宮崎</p>
				</div>
			</a>
			<a href="#card-kagoshima">
				<div id="kagoshima" class="badge">
					<p>鹿児島</p>
				</div>
			</a>
			<a href="#card-okinawa">
				<div id="okinawa" class="badge">
					<p>沖縄</p>
				</div>
			</a>
		</div>
	</div>
</div>
              
            
!

CSS

              
                #japan-map div div.area div {
	border: 1px #ffffff solid;
	text-align: center;
	font-size: 14px;
	display: flex;
	display: -webkit-flex;
	align-items: center;
	/* 縦方向中央揃え */
	-webkit-align-items: center;
	/* 縦方向中央揃え(Safari用) */
	justify-content: center;
	/* 横方向中央揃え */
	-webkit-justify-content: center;
	/* 横方向中央揃え(Safari用) */
	border-radius: 6px;
	-webkit-border-radius: 6px;
	position: absolute;
	box-sizing: border-box;
	transition: 0.2s;
	overflow: hidden;
	font-weight: bold;
}

#japan-map div div.area div:hover {
	opacity: 0.5;
	transition: 0.2s;
}


/******* ラベル *******/

#japan-map {
	position: relative !important;
}

#japan-map .triangle {
	position: absolute;
	border-bottom: 36px solid transparent;
	border-left: 40px solid #FF4D4D;
	top: 0px;
	left: 0;
}

#japan-map .triangle-notice {
	position: absolute;
	border-bottom: 41px solid transparent;
	border-left: 41px solid #1a4473;
	top: 0px;
	left: 0;
}

#japan-map .triangle-end {
	position: absolute;
	border-bottom: 36px solid transparent;
	border-left: 40px solid #888;
	top: 0px;
	left: 0;
}

#japan-map .label {
	position: absolute;
	top: 4px;
	left: -1px;
	font-size: 10px;
	color: #fff;
	transform: rotate(-43deg);
}

#japan-map .label-notice {
	position: absolute;
	top: 7px;
	left: -4px;
	font-size: 10px !important;
	color: #fff;
	transform: rotate(-43deg);
	letter-spacing: -0.5px;
}

#japan-map .label-end {
	position: absolute;
	top: 4px;
	left: 3px;
	font-size: 10px;
	color: #fff;
	transform: rotate(-43deg);
}



#japan-map {
	display: block;
	width: 964px;
	height: 646px;
	background-color: none;
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

#japan-map p.area-title {
	display: none;
}


/* 北海道・東北 */

#hokkaido-touhoku {
	width: 164px;
	display: block;
	height: 374px;
	position: absolute;
	right: 0;
}

#hokkaido-touhoku div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#hokkaido {
	width: 164px;
	height: 76px;
}

#aomori {
	width: 114px;
	height: 68px;
	left: 26px;
	top: 102px;
}

#akita {
	width: 81px;
	height: 68px;
	left: 3px;
	top: 170px;
}

#iwate {
	width: 81px;
	height: 68px;
	left: 84px;
	top: 170px;
}

#yamagata {
	width: 81px;
	height: 68px;
	top: 238px;
	left: 3px;
}

#miyagi {
	width: 81px;
	height: 68px;
	top: 238px;
	left: 84px;
}

#fukushima {
	width: 81px;
	height: 68px;
	top: 306px;
	left: 84px;
}


/* 関東 */

#kantou {
	width: 158px;
	display: block;
	height: 174px;
	position: absolute;
	top: 374px;
	right: 36px;
	z-index: 2;
}

#kantou div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#ibaraki {
	width: 65px;
	height: 85px;
	top: 0px;
	left: 130px;
}

#tochigi {
	width: 65px;
	height: 68px;
	top: 0px;
	left: 65px;
}

#gunma {
	width: 65px;
	height: 68px;
	top: 0px;
	left: 0px;
}

#saitama {
	width: 130px;
	height: 68px;
	top: 68px;
	left: 0px;
}

#chiba {
	width: 65px;
	height: 85px;
	top: 85px;
	left: 130px;
}

#tokyo {
	width: 130px;
	height: 68px;
	top: 136px;
	left: 0px;
}

#kanagawa {
	width: 100px;
	height: 68px;
	top: 204px;
	left: 0px;
}


/* 中部 */

#chubu {
	width: 270px;
	height: 211px;
	position: absolute;
	left: 600px;
	top: 306px;
}

#chubu div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#nigata {
	width: 114px;
	height: 68px;
	left: 170px;
}

#toyama {
	width: 81px;
	height: 68px;
	left: 89px;
}

#ishikawa {
	width: 65px;
	height: 90px;
	left: 24px;
}

#fukui {
	width: 81px;
	height: 68px;
	left: -57px;
	z-index: 2;
}

#nagano {
	width: 81px;
	height: 136px;
	left: 89px;
	top: 68px;
}

#yamanashi {
	width: 81px;
	height: 68px;
	left: 89px;
	top: 204px;
}

#gifu {
	width: 65px;
	height: 91px;
	left: 24px;
	top: 90px;
}

#shizuoka {
	width: 81px;
	height: 68px;
	left: 89px;
	top: 272px;
}

#aichi {
	width: 65px;
	height: 91px;
	top: 181px;
	left: 24px;
}


/* 近畿 */

#kinki {
	width: 100px;
	height: 211px;
	position: absolute;
	left: 438px;
	top: 306px;
}

#kinki div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#kyoto {
	width: 81px;
	height: 136px;
	left: 24px;
}

#shiga {
	width: 81px;
	height: 68px;
	top: 68px;
	left: 105px;
}

#osaka {
	width: 81px;
	height: 136px;
	top: 136px;
	left: 24px;
}

#nara {
	width: 41px;
	height: 136px;
	top: 136px;
	left: 105px;
}

#mie {
	width: 40px;
	height: 136px;
	top: 136px;
	left: 146px;
}

#wakayama {
	width: 124px;
	height: 68px;
	top: 272px;
	left: 43px;
}

#hyougo {
	width: 60px;
	height: 160px;
	left: -36px;
}


/* 中国 */

#tyugoku {
	width: 151px;
	height: 98px;
	position: absolute;
	left: 237px;
	top: 306px;
}

#tyugoku div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#tottori {
	width: 55px;
	height: 80px;
	left: 110px;
}

#okayama {
	width: 55px;
	height: 80px;
	top: 80px;
	left: 110px;
}

#shimane {
	width: 55px;
	height: 80px;
	left: 55px;
}

#hiroshima {
	width: 55px;
	height: 80px;
	top: 80px;
	left: 55px;
}

#yamaguchi {
	width: 55px;
	height: 160px;
	left: 0px;
}


/* 四国 */

#shikoku {
	width: 184px;
	height: 84px;
	position: absolute;
	left: 250px;
	top: 495px;
}

#shikoku div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#kagawa {
	width: 98px;
	height: 68px;
	right: 0px;
}

#ehime {
	width: 98px;
	height: 68px;
	left: -12px;
}

#tokushima {
	width: 98px;
	height: 68px;
	right: 0px;
	top: 68px;
}

#kouchi {
	width: 98px;
	height: 68px;
	left: -12px;
	top: 68px;
}


/* 九州・沖縄 */

#kyusyu {
	width: 152px;
	height: 247px;
	position: absolute;
	left: 0px;
	top: 400px;
}

#kyusyu div.area div {
	background-color: #4ab969;
	color: #ffffff;
}

#fukuoka {
	width: 70px;
	height: 60px;
	left: 140px;
	top: 0px;
}

#saga {
	width: 70px;
	height: 60px;
	left: 70px;
	top: 0px;
}

#nagasaki {
	width: 70px;
	height: 60px;
	left: 0px;
	top: 0px;
}

#oita {
	width: 70px;
	height: 60px;
	left: 140px;
	top: 60px;
}

#kumamoto {
	width: 72px;
	height: 120px;
	left: 68px;
	top: 60px;
}

#miyazaki {
	width: 70px;
	height: 60px;
	left: 140px;
	top: 120px;
}

#kagoshima {
	width: 86px;
	height: 66px;
	left: 123px;
	top: 180px;
}

#okinawa {
	width: 60px;
	height: 60px;
	left: 0px;
	top: 186px;
}
              
            
!

JS

              
                
              
            
!
999px

Console