コピペでできる!cssとhtmlのみで作る記事ブロック7選

CSS HTML
 

記事下など著者情報など通常の記事とは表現を分けたい時などありませんか?
そんな時にちょっとの手間で見やすくなるブロックデザインをご紹介

アイコンはfontawesomeを使用しています。

fontawesome.io

Font Awesome, the iconic font and CSS toolkit

Font Awesome, the iconic font and CSS framework……

fontawesome.com

ホームページを見る

browser:  74 12 20 

記事ブロック[7選]

シンプルな記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign01">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign01 {
	border-width: 1px;
	border-color: #757575;
	border-style: solid;
	border-radius: 4px;
	box-shadow: 0px 0px 0px 1px #BDBDBD;
}
.cp_blockdesign01 .cp_authorname {
	display: flex;
	border-bottom: 1px solid #757575;
}
.cp_blockdesign01 .cp_authorname h2 {
	margin: 0 0.5em;
	width: 70%;
}
.cp_blockdesign01 .cp_authorname ul {
	margin: 0 0;
	padding: 0.5em 0;
	width: 30%;
	text-align: center;
	background: #757575;
}
.cp_blockdesign01 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign01 .cp_authorname li a {
color: #ffffff;
}
.cp_blockdesign01 .cp_authorinfo {
	padding: 1em;
}

ステッチがついた記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign02">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign02 {
	border-width: 1px;
	border-color: #ffffff;
	border-style: dashed;
	border-radius: 4px;
	box-shadow: 0px 0px 0px 3px #B2EBF2;
	background: #B2EBF2;
}
.cp_blockdesign02 .cp_authorname {
	display: flex;
	border-bottom: 1px dashed #ffffff;
}
.cp_blockdesign02 .cp_authorname h2 {
	margin: 0 0.5em;
	width: 70%;
	color: #0097A7;
}
.cp_blockdesign02 .cp_authorname ul {
	margin: 0 0;
	padding: 0.5em 0;
	width: 30%;
	text-align: center;
	border-left: 1px dashed #ffffff;
}
.cp_blockdesign02 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign02 .cp_authorname li a {
	color: #0097A7;
}
.cp_blockdesign02 .cp_authorinfo {
	padding: 1em;
}

タイトルタブがついた記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign03">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign03 {
	border-width: 1px;
	border-color: #0097A7;
	border-style: solid;
	position: relative;
}
.cp_blockdesign03::after{
	content: "Author";
	position: absolute;
	top: -8px;
	left: 10px;
	background: #fafcfc;/*背景色と同じにする*/
	font-size: 14px;
	color: #0097A7;
	padding: 0 10px;
}
.cp_blockdesign03 .cp_authorname {
	display: flex;
	border-bottom: 1px solid #0097A7;
}
.cp_blockdesign03 .cp_authorname h2 {
	margin: 0.5em;
	width: 70%;
	color: #0097A7;
}
.cp_blockdesign03 .cp_authorname ul {
	margin: 0.5em 0;
	padding: 0.5em 0;
	width: 30%;
	text-align: center;
}
.cp_blockdesign03 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign03 .cp_authorname li a {
	color: #0097A7;
}
.cp_blockdesign03 .cp_authorinfo {
	padding: 1em;
}

ネームに帯がついた記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign04">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign04 {
	padding: 1em 0em 0.5em 0em;
	border-top: solid 1px #da3c41;
	border-bottom: solid 1px #da3c41;
	position: relative;
}
.cp_blockdesign04::before,
.cp_blockdesign04::after {
	content: '';
	position: absolute;
	top: -10px;
	width: 1px;
	height: calc(100% + 20px);
	background-color: #da3c41;
}
.cp_blockdesign04::before{
	left: 10px;
}
.cp_blockdesign04::after{
	right: 10px;
}
.cp_blockdesign04 .cp_authorname {
	display: flex;
	background-color: #da3c41;
}
.cp_blockdesign04 .cp_authorname h2 {
	margin: 0.3em 0.3em 0.3em 0.8em;
	width: 65%;
	color: #ffffff;
}
.cp_blockdesign04 .cp_authorname ul {
	margin: 0.5em 0;
	padding: 0.3em 0 0.3em 0.8em;
	width: 35%;
	text-align: center;
	border-left: 1px dashed #ffffff;
}
.cp_blockdesign04 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign04 .cp_authorname li a {
	color: #ffffff;
}
.cp_blockdesign04 .cp_authorinfo {
	padding: 0.5em 1.5em  0.5em  1.5em;
}

斜めラインで止めたような記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign05">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign05 {
	position: relative;
	padding: 0.8em;
	background: #ffebee;
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
	        box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
}
.cp_blockdesign05::before,
.cp_blockdesign05::after {
	position: absolute;
	width: 0;
	height: 51.95px;
	content: '';
	-webkit-transform: rotate(-45deg);
	        transform: rotate(-45deg);
	border-width: 0 0 0 1px;
	border-style: dashed;
	border-color: #f44336;
}
.cp_blockdesign05::before{
	top: -15px;
	right: 10px;
}
.cp_blockdesign05::after{
	bottom: -15px;
	left: 10px;
}
.cp_blockdesign05 .cp_authorname {
	display: flex;
	background-color: #ffcdd2;
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
	        box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
}
.cp_blockdesign05 .cp_authorname h2 {
	margin: 0.3em 0.3em 0.3em 0.8em;
	width: 65%;
	color: #f44336;
}
.cp_blockdesign05 .cp_authorname ul {
	margin: 0.5em 0;
	padding: 0.3em 0 0.3em 0.8em;
	width: 35%;
	text-align: center;
	border-left: 1px dashed #f44336;
}
.cp_blockdesign05 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign05 .cp_authorname li a {
	color: #f44336;
}
.cp_blockdesign05 .cp_authorinfo {
	padding: 0.5em 1.5em  0.5em  1.5em;
}

カギカッコがついた記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign06">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign06 {
	position: relative;
	padding: 0.5em;
	border-width: 1px;
	border-style: solid;
	border-color: #ec407a;
}
.cp_blockdesign06::before,
.cp_blockdesign06::after {
	position: absolute;
	width: 20px;
	height: 20px;
	content: '';
	border-width: 1px 0 0 1px;
	border-style: solid;
	border-color: #ec407a;
}
.cp_blockdesign06::before{
	top: 3px;
	left: 3px;
}
.cp_blockdesign06::after{
	right: 3px;
	bottom: 3px;
	-webkit-transform: scale(-1,-1);
	        transform: scale(-1,-1);
}
.cp_blockdesign06 .cp_authorname {
	display: flex;
	border-bottom: 1px solid #ec407a;
}
.cp_blockdesign06 .cp_authorname h2 {
	margin: 0.3em 0.3em 0.3em 0.8em;
	width: 65%;
	color: #ec407a;
}
.cp_blockdesign06 .cp_authorname ul {
	margin: 0.5em 0;
	padding: 0.3em 0 0.3em 0.8em;
	width: 35%;
	text-align: center;
	border-left: 1px solid #ec407a;
}
.cp_blockdesign06 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign06 .cp_authorname li a {
	color: #ec407a;
}
.cp_blockdesign06 .cp_authorinfo {
	padding: 1em 0.5em  0.5em  0.5em;
}

ネームの帯が重なった記事ブロック

ニャン易度

Neme

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="cp_blockdesign07">
<div class="cp_authorname">
<h2>Neme</h2>
<ul>
<li><a href="#"><i class="fa fa-facebook-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-lg fa-fw" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram fa-lg fa-fw" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="cp_authorinfo">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</div>
.cp_blockdesign07 {
	position: relative;
	overflow: hidden;
	padding: 0.5em;
	background: #B3E5FC;
}
.cp_blockdesign07 .cp_authorname::before,
.cp_blockdesign07 .cp_authorname::after {
	position: absolute;
	top: -7px;
	left: -20px;
	width: 110%;
	height: 130%;
	content: '';
}
.cp_blockdesign07 .cp_authorname::before{
	top: 0px;
	-webkit-transform: rotate(2.3deg);
	        transform: rotate(2.3deg);
	-webkit-transform-origin: bottom right;
	        transform-origin: bottom right;
	background: #4FC3F7;
}
.cp_blockdesign07 .cp_authorname::after{
	-webkit-transform: rotate(-1.8deg);
	        transform: rotate(-1.8deg);
	-webkit-transform-origin: bottom left;
	        transform-origin: bottom left;
	background: #03A9F4;
}
.cp_blockdesign07 .cp_authorname {
	position: relative;
	display: flex;
}
.cp_blockdesign07 .cp_authorname h2 {
	z-index: 1;
	margin: 0.3em 0.3em 0.3em 0.8em;
	width: 65%;
	color: #ffffff;
}
.cp_blockdesign07 .cp_authorname ul {
	z-index: 1;
	margin: 0.5em 0;
	padding: 0.3em 0 0.3em 0.8em;
	width: 35%;
	text-align: center;
}
.cp_blockdesign07 .cp_authorname li {
	display: inline;
	padding: 0 0.5em;
}
.cp_blockdesign07 .cp_authorname li a {
	color: #ffffff;
}
.cp_blockdesign07 .cp_authorinfo {
	padding: 1em 0.5em  0.5em  0.5em;
	position: relative;
	z-index: 1;
}

copypet.jp

CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。

More Info

こんな記事はいかがですか?