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

              
                <!DECTYPA html>

<html lang="ja">

<head>

	<link rel="stylesheet" type="text/css" href="style.css">

	<meta charset="UTF-8">
</head>

<body>


	<div class="cstmreba">

		<div class="kaerebalink-box">

			<div class="kaerebalink-image">
				<a href="/" target="_blank" ><!--しょうひんぺーじへのりn-->
					<img src="https://cdn-ak.f.st-hatena.com/images/fotolife/k/ktrw3200/20180202/20180202185410.jpg" style="border: none;" />
				</a>
			</div>

			<div class="kaerebalink-info">

				<div class="kaerebalink-name">
					<a href="/" target="_blank" >商品タイトル</a>
					<div class="kaerebalink-powered-date">posted with <a href="http://kaereba.com" rel="nofollow" target="_blank">カエレバ</a></div>
				</div>

				<div class="kaerebalink-detail">販売元</div>

				<div class="kaerebalink-link1">

					<div class="shoplinkamazon">
						<a href="/" target="_blank" >Amazon</a>
					</div>

					<div class="shoplinkrakuten">
						<a href="/" target="_blank" >楽天市場</a>
					</div>

				</div>
			</div>

			<div class="booklink-footer"></div>

		</div>
	</div>


</body>

              
            
!

CSS

              
                .booklink-box, .kaerebalink-box {
  padding: 15px 0 0 35px;
  width: 100%;
  margin: 0 auto 15px;
  box-sizing: border-box;
  border-radius: 0 5px 5px 0;
  background: #F5F5F5;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26);
}

.kaerebalink-box::before,
.booklink-box::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 20px;
  background: #2196F3;
}

.booklink-image, .kaerebalink-image {
  vertical-align: top;
  box-sizing: border-box;
  width: 120px;
  text-align: center;
  float: left;
}

.booklink-image img, .kaerebalink-image img {
  max-width: 100%;
}

.booklink-info, .kaerebalink-info {
  vertical-align: top;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px 10px;
}

.booklink-name, .kaerebalink-name {
  margin: 0 0 24px 0;
  display: block;
}

.booklink-name a, .kaerebalink-name a {
  color: #0066cc;
  text-decoration: underline;
}

.booklink-name>a, .kaerebalink-name>a {
  font-size: 18px;
  line-height: 25px;
  padding-bottom: 5px;
  border-bottom: 1px #616161 solid;
  width: 100%;
  color: #212121;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all .3s;
}

.booklink-name a:hover, .kaerebalink-name a:hover {
  color: #757575;
}

.booklink-powered-date, .kaerebalink-powered-date {
  font-size: 8px;
  margin: 6px 0 0 0;
}

.booklink-detail, .kaerebalink-detail {
  color: #333333;
  font-size: 12px;
  margin: 0 0 10px 0;
}

.booklink-link2 a, .kaerebalink-link1 a {
  display: block;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 3px;
  margin: 0px;
  z-index: 6;
  transition: all .3s;
}

.booklink-link2 a:hover, .kaerebalink-link1 a:hover {
  opacity: 0.6;
}

.booklink-link2>div, .kaerebalink-link1>div {
  width: 100%;
  box-sizing: border-box;
  float: left;
  margin: 5px 0;
}

.shoplinkamazon a {
  color: #ffffff;
  background: linear-gradient(to right, #f7971e, #ffd200);
  box-shadow: 0 5px 10px rgba(251, 152, 11, .5);
}

.shoplinkrakuten a {
  color: #ffffff;
  background: linear-gradient(to right, #d31027, #ea384d);
  box-shadow: 0 5px 10px rgba(252, 28, 143, .5);
}

.shoplinkkindle a {
  color: #ffffff;
  background: linear-gradient(to right, #1488cc, #2b32b2);
  box-shadow: 0 5px 20px rgba(0, 63, 255, .5);
}

.booklink-footer {
  display: none;
}


@media screen and (max-width: 300px) {
  .booklink-box, .kaerebalink-box{
    padding: 35px 5px 0px;
    border-radius: 0 0 5px 5px;
  }
  .booklink-image, .kaerebalink-image{
    margin: 0 auto;
    float: none;
  }
  .kaerebalink-box::before{
    width: 100%;
    height: 20px;
  }
  .booklink-info, .kaerebalink-info{
    padding: 20px 10px 10px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console