Professional Documents
Culture Documents
Tampilan Website Sederhana
Tampilan Website Sederhana
Tampilan Website Sederhana
Website Layout
February 7, 2011
Ayaz Malik
o Designs
o Tutorials
AD
A long time ago, one of our authors named Jillz created a tutorial about Designing a
Minimalist Website Layout in Photoshop. I used that exact PSD file and created an HTML
CSS Layout for our readers so that you can learn some coding lessons or download it and use it
as your own site (naturally free of charge).
As you might have guessed, we are going to start a step by step tutorial for creating a Minimalist
HTML CSS Layout.
This tutorial doesnt require slicing in Photoshop, because it will cover only the most basic topics
and is for beginners.
To start, you will need your favorite HTML/Code editor like Dreamweaver or Notepad ++ and
PSD of this Tutorial.
{filelink=15}
Lets start by making a new folder and a directory structure as mentioned below within this
folder.
1. Create a Folder called Images, which will contain all our images
2. Create a Folder called styles, which will contain style.css or if you prefer to move it to the
images folder, feel free to do so.
4. Open a blank/new css file, name it as style.css and save it in styles folder.
<body>
<div id="frame">
</div>
</body>
a {color:#000;text-decoration:none;}
a:hover{text-decoration:underline;}
This chunk of CSS defines the basic element styling, a background image to the page
and frames width and margins.
Logo, Navigation and Search Area
As you can see in the demo, the top center area is defined for logo, below lies the navigation
and the search box. This is the HTML for these sections:
#search input {
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
border: 1px solid #CCCCCC;
float: left;
padding: 8px;
width: 285px;
margin:5px;
}
#search input.btn {
background: none repeat scroll 0 0 transparent;
border: 0 none;
margin: 10px 0 0 -40px;
padding: 0;
width: auto;
}
/* Navigation and Search CSS Ends */
This would be the area where featured images will rotate or have a previous/next button. Since
we are only working on the design view, we will not work on any jQuery or flash for this area,
thus only show it via a static image.
<div id="gallery">
<img src="images/gallery.jpg" alt="gallery" />
</div>
/* Gallery Area */
#gallery { //css for gallery div
width:960px;
height:370px;
margin:20px auto;
text-align:center;
background:#fff; -moz-box-shadow:0 0 8px #666;
-webkit-box-shadow:0 0 8px #666;
box-shadow:0 0 8px #666;
}
#gallery img {padding:10px 0;} //css for img with in the gallery
There are 4 blocks which represents content in a beautiful manner. Since all four of these blocks
are visually the same, they will use one common CSS. Below i will show code of 1 block.
<div class="blocks">
<img src="images/thumb1.jpg" alt="thumb" />
<p>Lorem ipsum dolor sit amet, uer uer Duis autem vel eum iriure Duis autemvel
eum iriure dolor. ipsum dolor sit amet, consectetuer Duis autem vel Lorem
ipsum Lorem ipsum dolor sit amet, uer uer Duis autem vel eum iriure Duis
autemvel eum iriure dolor. ipsum dolor sit amet, consectetuer </p>
<p><a href="#" class="more">more...</a></p>
</div>
/* Content Blocks */
.blocks {width:200px;
float:left;
margin-right:26px;
padding:10px;
height:350px;
background:#fff;
-moz-box-shadow:0 0 8px #666;
-webkit-box-shadow:0 0 8px #666;
box-shadow:0 0 8px #666;
text-align:justify;
margin-bottom:15px;
}
.blocks img {margin-bottom:5px;}
.more {font-size:12px; float:right; color:#000; margin-top:7px; text-
decoration:underline;}
This area will contain 4 small thumbnails and some welcome or introduction message as a text.
<div id="desc-box">
<div class="thumbnails-div"><img src="images/small-thumb1.jpg"
alt="smallthumb" />
<img src="images/small-thumb2.jpg" alt="smallthumb" />
<img src="images/small-thumb1.jpg" alt="smallthumb" />
<img src="images/small-thumb2.jpg" alt="smallthumb" /></div>
<div class="description"><h3>Welcome to the Site.</h3>
<p> Lorem ipsum dolor sit amet, uer uer Duis autem vel eum iriure Duis
autemvel eum iriure dolor. ipsum dolor sit amet, consectetuer Duis autem vel
Lorem ipsum Lorem ipsum dolor sit amet, uer uer Duis autem vel eum iriure Duis
autemvel eum iriure dolor. ipsum dolor sit amet, consectetuer Lorem ipsum
dolor sit amet, uer uer Duis autem vel eum iriure Duis autemvel eum iriure
dolor. ipsum dolor sit amet, consectetuer Duis autem vel Lorem ipsum Lorem
ipsum dolor sit amet, uer uer Duis autem vel eum iriure Duis autemvel eum
iriure dolor. ipsum dolor sit amet, consectetuer Lorem ipsum dolor sit
amet, uer uer Duis autem vel eum iriure Duis autemvel eum iriure dolor. ipsum
dolor sit amet, sectetuer.</p><p><a href="#"
class="more">more...</a></p></div>
</div>
Footer Area
Our Navigation area and footer area are alike, so I made a common CSS for both of them. See
the code below:
<div class="nav">
<p>
<a href="#">Terms of Service</a>
</p>
<p>
<a href="#">Privacy Policy</a>
</p>
<p> 2009 <a href="http://www.designzzz.com/">Designzzz</a> </p>
<div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
Live Demo
{filelink=15}
Some End Notes
1. This tutorial is intended for beginners and that is why I have neglected the use of common
CSS classes for multiple divs etc., such as the CSS used for shadows of all the divs that can be
make into one style and can be applied to all the divs with their id CSS.
2. If you get errors on Validation because of possible repetitions of IDs in div, dont worry about
it. It is because we have used same div ids for alike divs like blocks. So instead of making CSS
with different names, I made one common and used it 4 times. (FIXED)
3. Feel free to use this layout in your personal or commercial layouts if you want. A link back to
us will be appreciated though .