シンプルボックスデザイン

実線

SAMPLE

COLOR :

HTML

<div class="nomadBox1">
  <p>ここに文章</p>
</div>

CSS

.nomadBox1 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border: solid 1px #272727;
}
.nomadBox1 p {
    padding: 0;
    margin: 0;
}
角丸実線

SAMPLE

COLOR :

HTML

<div class="nomadBox2">
  <p>ここに文章</p>
</div>

CSS

.nomadBox2 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border: solid 1px #272727;
  border-radius: 5px;/*角の丸み*/
}
.nomadBox2 p {
    padding: 0;
    margin: 0;
}
背景色

SAMPLE

COLOR :

HTML

<div class="nomadBox3">
  <p>ここに文章</p>
</div>

CSS

.nomadBox3 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  background:rgba(39,39,39,.07);/*背景色*/
}
.nomadBox3 p {
  padding: 0;
  margin: 0;
}
実線 + 背景色

SAMPLE

COLOR :

HTML

<div class="nomadBox4">
  <p>ここに文章</p>
</div>

CSS

.nomadBox4 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border: solid 2px #272727;
  background:rgba(39,39,39,.07);/*背景色*/
}
.nomadBox4 p {
  padding: 0;
  margin: 0;
}
左線

SAMPLE

COLOR :

HTML

<div class="nomadBox5">
  <p>ここに文章</p>
</div>

CSS

.nomadBox5 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border-left: solid 4px #272727;
  background:rgba(39,39,39,.07);
}
.nomadBox5 p {
  padding: 0;
  margin: 0;
}
上線

SAMPLE

COLOR :

HTML

<div class="nomadBox6">
  <p>ここに文章</p>
</div>

CSS

.nomadBox6 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border-top: solid 4px #272727;
  background:rgba(39,39,39,.05);
}
.nomadBox6 p {
  padding: 0;
  margin: 0;
}
シャドウ

SAMPLE

COLOR :

HTML

<div class="nomadBox7">
  <p>ここに文章</p>
</div>

CSS

.nomadBox7 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border-top: 5px solid #272727;
  box-shadow: 1px 1px 2px rgba(0,0,0,.3);/*影*/
}
.nomadBox7 p {
  padding: 0;
  margin: 0;
}
交差線

SAMPLE

COLOR :

HTML

<div class="nomadBox8">
  <p>ここに文章</p>
</div>

CSS

.nomadBox8 {
  position: relative;
  margin: 15px 0;
  padding: 1.5em;
  color: #272727;
  border-top: solid 2px #272727;
  border-bottom: solid 2px #272727;
}
.nomadBox8:before,
.nomadBox8:after {
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: -webkit-calc(100% + 20px);
  height: calc(100% + 20px);
  background-color: #272727;
}
.nomadBox8:before {left: 10px;}
.nomadBox8:after {right: 10px;}
.nomadBox8 p {
    margin: 0;
    padding: 0;
}

シンプルボックスデザイン

実線

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco1">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco1 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border: double 6px #272727;
}
.nomadBox_deco1 p {
  padding: 0;
  margin: 0;
}
三重線

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco2">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco2 {
  position: relative;
  border: 1px solid #272727;
  color: #272727;
  width: 95%;
  margin: 1em auto 1.5em auto;
  padding: 20px 15px 15px 30px;
  z-index: 0;
}
.nomadBox_deco2:before {
  border: 1px solid #272727;
  top: 8px;
  left: 8px;
  z-index: 1;
}
.nomadBox_deco2:after {
  border: 1px solid #272727;
  top:4px;
  left: 4px;
  z-index: 2;
}
.nomadBox_deco2:before,
.nomadBox_deco2:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
}
.nomadBox_deco2 p{
  padding: 0;
}
破線

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco3">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco3 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border: dashed 2px #272727;
}
.nomadBox_deco3 p {
  padding: 0;
  margin: 0;
}
ドット線

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco4">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco4 {
  padding: 1.5em;
  margin: 15px 0;
  color: #272727;
  border: dotted 3px #272727;
}
.nomadBox_deco4 p {
  padding: 0;
  margin: 0;
}
手書き風

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco5">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco5 {
  padding: 1.2em 1.2em;
  margin: 15px 0;
  border: solid 3px #272727;
  color: #272727;
  border-top-left-radius: 1.5em;
  border-top-right-radius: 2em;
  border-bottom-left-radius: 2.5em;
  border-bottom-right-radius: 1.5em;
}
.nomadBox_deco5 p {
  padding: 0;
  margin: 0;
}
ぼかし

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco6">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco6 {
  margin: 15px 0;
  padding: 1em;
  width: 95%;
  color: #272727;
  background:rgba(39,39,39,.07);
  box-shadow: 0 0 10px 10px rgba(39,39,39,.07);
}
.nomadBox_deco6 p {
  padding: 0;
  margin: 0;
}
線ぼかし

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco7">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco7 {
  margin: 15px 0;
  padding: 1em;
  width: 95%;
  color: #272727;
  background-color: #fff;
  box-shadow: 0 0 2px 2px #272727, 0 0 2px 2px #272727 inset;
  border-radius: 5px;
}
.nomadBox_deco7 p {
  padding: 0;
  margin: 0;
}
テープ

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco8">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco8 {
  position: relative;
  margin: 2em auto;
  padding: 2.5em 1.5em 1.5em 1.5em;
  width: 90%;
  color: #272727;
  background-color: rgba(39, 39, 39, .07);
  box-shadow: 0 2px 2px #ccc;
}
.nomadBox_deco8:before {
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: -1.3em;
  height: 2em;
  width: 50%;
  max-width: 200px;
  content: "";
  border: 1px solid #ccc;
  background-color: #FFF;
  opacity: .4;
  transform: rotate( -5deg );
}
.nomadBox_deco8 p {
  padding: 0;
  margin: 0;
}
吹き出し

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco9">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco9 {
  position: relative;
  padding: 1.5em;
  margin: 15px 0;
  background: rgba(39,39,39,.07);
  color: #272727;
}
.nomadBox_deco9:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 30px;
  border: 10px solid transparent;
  border-top: 15px solid rgba(39,39,39,.07);
  width: 0;
  height: 0;
}
.nomadBox_deco9 p {
  padding: 0;
  margin: 0;
}

シンプルボックスデザイン

ツートン1

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco11">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco11 {
  background: #fff;
  display: block;
  margin: 15px 0;
  width: auto;
  padding: 20px 30px 20px 30px;
  border-radius: 10px;
  position: relative;
  border: 10px solid transparent;
  border-radius: 4px;
  background: linear-gradient(#fff, #fff), repeating-linear-gradient(-45deg, #272727 0, #272727 2%, #525252 0, #525252 5%);
  background-clip: padding-box, border-box;
  background-origin: border-box;
}
.nomadBox_deco11 p {
  line-height: 1.5em;
  margin: 0;
  padding: 0;
}
ツートン2

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco12">
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco12 {
  background: #fff;
  display: block;
  margin: 15px 0;
  width: auto;
  padding: 20px 30px 20px 30px;
  border-radius: 10px;
  position: relative;
  border: 10px solid transparent;
  border-radius: 4px;
  background: linear-gradient(#fff, #fff), repeating-linear-gradient(-45deg, #ddd7c1 0, #ddd7c1 2%, #e6e1ce 0, #e6e1ce 5%);
  background-clip: padding-box, border-box;
  background-origin: border-box;
}
.nomadBox_deco12 p {
  line-height: 1.5em;
  margin: 0;
  padding: 0;
}
タイトル付きボックス1

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco13">
  <h4>タイトル</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco13 {
  border: 1px solid #272727;
  background: #F6F6F8;
  margin: 15px 0;
}
.nomadBox_deco13 h4 {
  margin: 0;
  padding: 10px;
  font-size: 18px;
  color: #fff;
  background: #272727;
  font-weight: bold;
  border-left:none;
}
.nomadBox_deco13 p {
  padding: 20px;
  line-height: 1.5em;
  margin: 0;
}
タイトル付きボックス2

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco14">
  <h4>タイトル</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco14 {
  border: 1px solid #272727;
  background: #F6F6F8;
  margin: 35px 0 15px 0;
  position: relative;
}
.nomadBox_deco14 h4 {
  margin: 0;
  padding: 10px;
  font-size: 18px;
  color: #fff;
  background: #272727;
  font-weight: bold;
  width: 80%;
  margin: auto;
  margin-top: -20px;
  text-align: center;
  border-left:none;
}
.nomadBox_deco14 p {
  padding: 20px;
  line-height: 1.5em;
  margin: 0;
}
チェック

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco17">
 <h4>チェック</h4>
 <p>ここに文章</p>
</div>

CSS

.nomadBox_deco17 {
  border: 1px solid #FFCE00;
  background: #FBF9F0;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco17 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background: #FFCE00;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
  border-left:none;
  
}
.nomadBox_deco17 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
ポイント

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco18">
 <h4>ポイント</h4>
 <p>ここに文章</p>
</div>

CSS

.nomadBox_deco18 {
  border: 1px solid #FFCE00;
  background: #FBF9F0;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco18 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background: #FFCE00;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
  border-left:none;
}
.nomadBox_deco18 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
注意

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco19">
  <h4>注意</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco19 {
  border: 1px solid #E04C4C;
  background: #F9EDEF;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco19 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background: #E04C4C;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
  border-left:none;
}
.nomadBox_deco19 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
メリット

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco20">
  <h4>メリット</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco20 {
  border: 1px solid #4DA1FF;
  background: #F2F6FD;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco20 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background: #4DA1FF;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
  border-left:none;
}
.nomadBox_deco20 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
デメリット

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco21">
  <h4>デメリット</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco21 {
  border: 1px solid #E04C4C;
  background: #F9EDEF;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco21 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  background: #E04C4C;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
  border-left:none;
}
.nomadBox_deco21 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
チェック + 大きい文字

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco22">
 <h4>チェック</h4>
 <p>ここに文章</p>
</div>

CSS

.nomadBox_deco22 {
  border: 1px solid #FFCE00;
  background: #FBF9F0;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco22 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 20px !important;
  color: #fff;
  background: #FFCE00;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
}
.nomadBox_deco22 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
ポイント + 大きい文字

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco23">
 <h4>ポイント</h4>
 <p>ここに文章</p>
</div>

CSS

.nomadBox_deco23 {
  border: 1px solid #FFCE00;
  background: #FBF9F0;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco23 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 20px !important;
  color: #fff;
  background: #FFCE00;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
}
.nomadBox_deco23 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
注意 + 大きい文字

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco24">
  <h4>注意</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco24 {
  border: 1px solid #E04C4C;
  background: #F9EDEF;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco24 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 20px !important;
  color: #fff;
  background: #E04C4C;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
}
.nomadBox_deco24 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
メリット + 大きい文字

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco25">
  <h4>メリット</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco25 {
  border: 1px solid #4DA1FF;
  background: #F2F6FD;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco25 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 20px !important;
  color: #fff;
  background: #4DA1FF;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
}
.nomadBox_deco25 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
デメリット + 大きい文字

SAMPLE

COLOR :

HTML

<div class="nomadBox_deco26">
  <h4>デメリット</h4>
  <p>ここに文章</p>
</div>

CSS

.nomadBox_deco26 {
  border: 1px solid #E04C4C;
  background: #F9EDEF;
  margin: 40px 0 15px 0;
  position: relative;
}
.nomadBox_deco26 h4 {
  margin-left: -1px;
  padding: 15px;
  font-size: 20px !important;
  color: #fff;
  background: #E04C4C;
  font-weight: bold;
  width: 5%;
  margin-top: -25px;
  left: 0;
  min-width: 150px;
  text-align: center;
  border-radius: 0 50em 50em 0;
}
.nomadBox_deco26 p {
  padding: 15px 20px 20px 20px;
  line-height: 1.5em;
  margin: 0;
}
はてなブログのデザイン