Kursus Membuat Web

iklan

Membuat Block Quote CSS 1

Block Quote ini dibuat menggunakan HTML 5 dan CSS 3

Gambar Block Quote
membuat menu css
Lihat Demo ..

Source Code HTML

Buat kode HTML 5 sebagai berikut

Source Code HTML
<!DOCTYPE html>
<html lang="id">
	<head>
		<title>Membuat Block Quote CSS - Kursus Membuat Web</title>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="normalize.css" media="all">
		<link rel="stylesheet" type="text/css" href="style_common.css" media="all">
		<link rel="stylesheet" type="text/css" href="block_quote.css" media="all">
	</head>
	<body>
		<div class="mb-wrap mb-style-1">
			<div class="mb-thumb"></div>
				<blockquote cite="#">
					<p>Barang siapa tidak mau merasakan pahitnya belajar, maka dia akan merasakan hinanya kebodohan seumur hidupnya.</p>
				</blockquote>
					<div class="mb-attribution">
						<p class="mb-author">Imam Syafi'i</p>
						<cite><a href="#">Imam Syafi'i</a></cite>
					</div>
		</div>
	</body>
</html>

Source Code CSS

Selanjutnya buat kode CSS 3 sebagai berikut

style_common.css
@font-face {
  font-family: 'icons';
  src: url("font/icons.eot");
  src: 
  url("font/icons.eot?#iefix") format('embedded-opentype'), 
  url("font/icons.woff") format('woff'), 
  url("font/icons.ttf") format('truetype'), 
  url("font/icons.svg#icons") format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Let's set and reset some common styles */
  .mb-wrap {
  width: 300px;
  margin: 20px auto;
  padding: 20px;
  position: relative; 
}
.mb-wrap p{
  margin: 0;
  padding: 0;
}
.mb-wrap blockquote {
  margin: 0;
  padding: 0;
  position: relative;
}
.mb-wrap cite {
  font-style: normal;
}
block_quote.css
.mb-style-1 {
  background: #363738 url(dark_leather.jpg) repeat top left; 
  margin-top: 100px;
  padding-top: 100px;
  width: 400px;
  color: #fff;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  border-top: 10px solid #fff;
}
.mb-style-1 .mb-thumb {
  display: block;
  width: 180px;
  height: 180px;
  border: 10px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: url(imam-syafii.jpg) no-repeat center center;
  position: absolute;
  left: 50%;
  top: -90px;
  margin: 0 0 0 -90px;
  box-shadow: 
  inset 1px 1px 4px rgba(0,0,0,0.5),
  0 2px 3px rgba(0,0,0,0.6);
}
.mb-style-1 blockquote:before,
  .mb-style-1 blockquote:after {
  font-family: 'icons';
  position: absolute;
  font-size: 70px;
  top: -95px;
  color: #242526;
  text-shadow: 0 1px 1px rgba(255,255,255,0.1);
}
.mb-style-1 blockquote:before{
  content: '\275d';
}
.mb-style-1 blockquote:after{
  right: 0px;
  content: '\e800';
}
.mb-style-1 blockquote p {
  font-family: Cambria, Georgia, serif;
  font-style: italic;
  font-size: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1);
  padding: 10px 10px 20px 10px;
  text-align: center;
  margin: 0 0 20px 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.mb-style-1 .mb-attribution {
  text-align: right;
}
.mb-style-1 .mb-author{
  text-transform: uppercase;
  font-size: 20px;
  font-weight: bold;
  color: #1b1c1d;
  text-shadow: 0 1px 1px rgba(255,255,255,0.1);
}
.mb-style-1 cite a{
  color: #f0f0f0;
  font-style: italic;
  font-family: Cambria, Georgia, serif;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.7)
}
.mb-style-1 cite a:hover{
  text-shadow: 2px 2px 3px rgba(0,0,0,0.9)
}
Lihat Demo ..

muhammad falah

Saya Muhammad Falah, jika Anda ingin langsung belajar dengan Saya, silakan ikuti kursus membuat web yang Saya bimbing atau ikuti Saya di :

Muhammad Falah Youtube Channel Muhammad Falah LinkedIn Muhammad Falah Google Plus Muhammad Falah Twitter Muhammad Falah Facebook

copy right © 2015