Kamis, 10 September 2015

BLOG HTML 5 RESPONSIVE

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="utf-8" />
 <title> Nyekrip - Membuat Template Responsive</title>
 <link rel="stylesheet" type="text/css" href="style/reset.css" />
 <link rel="stylesheet" type="text/css" href="style/style.css" />
 <link rel="stylesheet" type="text/css" href="style/media-queries.css" />
 
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
 <link href='http://fonts.googleapis.com/css?family=Open+Sans:700,400,400italic,700italic' rel='stylesheet' type='text/css'>
 
 <!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
 <![endif]-->
</head>
 
<body id="home">
 <div id="wrapper">
  
  <header>
   <h1><a href="index.html">Nyekrip</a></h1>
   <h2>Nyekrip <span>-</span> Web Tutorial Indonesia</h2>
   <nav>
    <a href="#">Beranda</a>
    <a href="#">Skrip</a>
    <a href="#">Glosarium</a>
    <a href="#">Tentang</a>
    <a href="#">Nyekrip Yuk</a>
    <div class="clearfix"></div>
   </nav> 
  </header>
    
  <section id="main-content">
   <div id="featured">
    <h3>Tutorial Populer :</h3>
    <h4><a href="#">Tutorial 1</a></h4>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor eros at ipsum posuere, 
    quis dapibus metus tempus. Vivamus sodales egestas consequat. Donec sodales aliquet lectus pellentesque 
    dignissim. Curabitur ipsum magna, sodales quis auctor quis, pulvinar eu neque.llis... 
    <br/> <a href="#">Nyekrip More →</a></p>
   </div> <!-- END Featured -->
 
   <hr/>
   <div id="latest">
    <section class="left-col">
     <h3>Tutorial Terbaru :</h3><br/>
     <h4><a href="#">Tutorial 1</a></h4>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor eros at 
        ipsum posuere.   <a href="#">Nyekrip More →</a></p>
     <h4><a href="#">Tutorial 2</a></h4>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor eros at 
        ipsum posuere.   <a href="#">Nyekrip More →</a></p>
     <h4><a href="#">Tutorial 3</a></h4>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor eros at 
        ipsum posuere.   <a href="#">Nyekrip More →</a></p>
    </section> <!-- END Left Column --> 
 
    <aside class="sidebar">
     <h4><a href="#">Arsip</a></h4>
     <ul>
      <li><a href="#">Jan 2015</a></li>
      <li><a href="#">Feb 2015</a></li>
      <li><a href="#">Mar 2015</a></li>
     </ul>
     <br/>
     <h4><a href="#">Kategori</a></h4>
     <ul>
      <li><a href="#">HTML</a></li>
      <li><a href="#">CSS</a></li>
      <li><a href="#">PHP</a></li>
     </ul>
     <br/>
     <h4><a href="#">Sosial</a></h4>
     <ul>
      <li><a href="#">Facebook</a></li>
      <li><a href="#">Twitter</a></li>
      <li><a href="#">RSS</a></li>
      <li><a href="#">Google+</a></li>
     </ul> 
    </aside>
   </div> <!-- END Latest -->
   <div class="clearfix"></div>
   <hr/>
   <div id="about">
    <h3>Tentang</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor eros at ipsum posuere, 
    quis dapibus metus tempus. Vivamus sodales egestas consequat. Donec sodales aliquet lectus pellentesque 
    dignissim. Curabitur ipsum magna, sodales quis auctor quis, pulvinar eu neque.llis... </p>
   </div> 
  </section> 
  <hr/>
  <footer>
   <p>© 2015 - Membuat Template Responsive</p>
  </footer>  
  
 </div> <!-- END Wrapper -->
 
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</body>
</html>

CSS STYLE
body {
    background: #F9F9F9;
    color: #222;
    font-family: 'Droid Serif', serif;
    font-size: 16px;
}
#wrapper {
    margin: 10px auto;
    max-width: 980px;
    width: 90%;
    background: #fff;
    padding: 10px 0;
}
header {
    padding: 3px;
}
::-moz-selection {
    background-color: #91D8f7;
    color: #fff;
}
::selection {
    background-color: #91D8f7;
    color: #fff;
}
a {
    outline: 0;
    color: #222;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
p a:hover {
    color: #53bd84;
}
a:active {
    outline: 0;
    position: relative;
    top: 2px;
}
.clearfix {
    clear: both;
}
h1 {
    font-size: 89px;
    font-family: 'Open Sans', serif;
    line-height: 75px;
    padding: 10px;
}
h1 a:hover {
    text-decoration: none;
    color: #53bd84;
}
h2 {
    font-family: Helvetica;
    font-size: 18px;
    padding: 10px;
}
h3 {
    font-family: 'Droid Serif', serif;
    font-size: 30px;
}
h4 {
    font-family: 'Droid Serif', serif;
    padding: 3px;
    margin: 5px 0 0;
}
h4 a {
    text-decoration: underline;
}
nav {
    background: #222;
    padding: 0;
    margin: 10px 0;
}
nav a {
    color: #F9F9F9;
    display: block;
    float: left;
    padding: 10px;
}
nav a:visited {
    color: #f9f9f9;
}
nav a:hover {
    text-decoration: none;
    background: #53bd84;
}
nav a:active {
    position: relative;
    top: 0;
}
.left-col {
    width: 70%;
    float: left;
}
.sidebar {
    width: 20%;
    float: right;
    margin-bottom: 10px;
}
#about, #featured, #latest {
    padding: 20px;
}
p {
    padding: 0 5px;
}
ul {
    list-style: none;
}
ul li {
    margin: 0 5px;
}
footer {
    padding: 5px;
}
pre {
    overflow: scroll;
    font-size: 10px;
}


media-queries.css
/*Style Media Kueri*/
@media screen and (max-width:478px) {
    h1 {
    font-size: 70px;
    padding: 1px;
}
h2 {
    font-size: 13px;
    padding: 1px;
}
body {
    font-size: 13px;
}
}@media screen and (max-width:740px) {
    .left-col, .sidebar {
    width: 100%}
}img {
    max-width: 100%;
    height: auto;
}


reset.css
/*Style untuk reset*/
a ,
abbr ,
acronym ,
address ,
applet ,
article ,
aside ,
audio ,
b ,
big ,
blockquote ,
body ,
canvas ,
caption ,
center ,
cite ,
code ,
command ,
datalist ,
dd ,
del ,
details ,
dfn ,
div ,
dl ,
dt ,
em ,
embed ,
fieldset ,
figcaption ,
figure ,
font ,
footer ,
form ,
h1 ,
h2 ,
h3 ,
h4 ,
h5 ,
h6 ,
header ,
hgroup ,
html ,
i ,
iframe ,
img ,
ins ,
kbd ,
keygen ,
label ,
legend ,
li ,
meter ,
nav ,
object ,
ol ,
output ,
p ,
pre ,
progress ,
q ,
s ,
samp ,
section ,
small ,
source ,
span ,
strike ,
strong ,
sub ,
sup ,
table ,
tbody ,
tdvideo ,
tfoot ,
th ,
thead ,
tr ,
tt ,
u ,
ul ,
var {
    background: 0 0;
    border: 0;
    font-size: 100%;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}











Tidak ada komentar:

Posting Komentar

Catatan: Hanya anggota dari blog ini yang dapat mengirim komentar.