Hiển thị các bài đăng có nhãn css. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn css. Hiển thị tất cả bài đăng

Thứ Tư, 22 tháng 8, 2012

How to Code a Clean Minimalist HTML CSS Website Layout


To start, you will need your favorite HTML/Code editor like Dreamweaver or Notepad ++ and PSD of this Tutorial.

FINAL VERSION DEMOS

Minimalist html css web template
Live Demo

Lets Get Started

Let’s 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.
3. Open a blank/new index.html  and save it in this primary folder.
4. Open a blank/new css file, name it as style.css and save it in styles folder.

Head Area Code

Now I am going to show you the obvious HTML head area of index.html with the attached CSS.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Designzzz's Minimalist Website Layout</title>
    <link rel="stylesheet" type="text/css" href="styles/style.css" media="screen" />
 </head>

Moving Forward to Body

I am defining the width of the web page as 960px and the main container div would be called ‘frame’. This is how our body structure will look like :
<body>
<div id="frame">

<!-- All the Body Area Code -->

</div>
</body>

CSS for Body and Frame Container

html, * {padding:0; margin:0;} //defining 0 margin and padding for all elements

body {background:url(../images/bg.jpg) no-repeat top center #ada6a0; font-family:Arial,Verdana,Helvetica,sans-serif; font-size:12px;}

a {color:#000;text-decoration:none;}

a:hover{text-decoration:underline;} 

#frame {width:960px; margin:0 auto;} //Frame Container's CSS
This chunk of CSS defines the basic element styling, a background image to the page and frame’s width and margins.

Logo, Navigation and Search Area

Header 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:
<!-- Logo Area Starts -->
<div id="logo">
  <img src="images/logo.png" alt="logo" />
</div>
<!-- Logo Area Ends-->
<!-- Navigation Starts-->
<div class="nav">
<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>
<!-- Navigation Ends -->
<!-- Search Area Starts -->
<div id="search">
   <input type="text" id="s" name="s" onclick="this.value='';" value="Site Search" />
   <input type="image" class="btn" id="searchsubmit" value="Search" src="images/search.jpg" name="" />
</div>
<!-- Search Area Ends -->
</div> <!-- Navigation Div Ends -->

CSS for this Area

/* Logo CSS Starts */
  #logo {width:200px; height:80px; margin:15px auto;}
/* Logo CSS ENDS*/

/* Navigation and Search  CSS Starts*/

 .nav {width:100%;height:45px;background:#fff; -moz-box-shadow:0 0 8px #666; -webkit-box-shadow:0 0 8px #666; box-shadow:0 0 8px #666;}
  .nav ul {list-style:none;}
  .nav ul li {float:left;font-size:16px; margin:13px 22px;}
  .nav div {float:right;}
  .nav p {margin:15px; float:left;}
  #search {float:right;border:none;}

  #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 */
Its pretty much self explanatory.

Featured Gallery Area

gallery area
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.

Featured Gallery Area HTML

<div id="gallery">
   <img src="images/gallery.jpg" alt="gallery" />
</div>

Featured Gallery Area CSS

/* 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

Moving to Content Area 4 Blocks

content area
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.

HTML for Blocks

<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>

CSS for Blocks

/* 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;}

Moving to Welcome Text and Description Box

Description Area
This area will contain 4 small thumbnails and some welcome or introduction message as a text.

HTML for Description Box

<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>

CSS For Description Box

/* Welcome Text Box */
#desc-box {
height:160px;
margin:10px 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;
overflow:hidden;
padding:10px;
}
.thumbnails-div {
width:200px;
float:left;
}
.thumbnails-div img {
margin:4px;
}
.description {
float:right;
width:710px;
padding:10px;
text-align:justify;
}
.description h3{margin:5px 0;}

Footer Area

footer area
Our Navigation area and footer area are alike, so I made a common CSS for both of them.  See the code below:

HTML For Footer

<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

How to Convert a Corporate PSD Web Layout into HTML CSS


FINAL RESULT

Live Preview
html-css template

Head Area Code

As usual, we are creating this template in HTML4 as it still is the most common language of the web. We have created a simple <head> section.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Business Company</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

Moving Forward to Body

Details of <body> are given below this step. Right now, you can just see that I have created a master <div> with an ID ofMain Container.
<body>
<div id="main-container">

    <!-- All the Body Area Code -->
 </div>
 </body>

CSS Body and Main Container

These are the CSS code properties of main <body> and the <div> ID Main Container. I have extracted the the background from PSD file and I’m using that picture in code.  I have also associated a gray color in the background.
@charset "utf-8";
   /* CSS Document */
   html, * {margin:0;padding:0;}
   body
 {
 background:url(images/bg-header.jpg) repeat-x #363637;
 }
 a {
 color:#FFF; text-decoration:none;
}
 #main-container {
 width:1000px; margin:0 auto;
 }

Logo and Navigation Area

html-css-coding
Time to create the navigation. I made a JPG of the logo, and also created a <ul> list for the nav bar. Here’s the HTML.
<div id="header-bg">
 <div id="logo">
<img src="images/logo.png" alt="" /> </div>
 <div id="nav">
<ul>
<li class="active"><a href="#"> Home </a></li>
<li><a href="#"> About </a></li>
<li><a href="#"> Products </a></li>
<li><a href="#"> Services </a></li>
<li><a href="#"> Contact </a></li>
</ul>
</div>

Css for Nav Bar

Now the CSS. You should play with the values to create something of your own.
#header-bg
 {
 height:413px;
 top:auto;
 width:1000px;
 overflow:hidden;
}
#logo
   {
   margin-left: 10px;
   margin-top:10px;
   width:200px;
   float:left;
   }

   #nav
   {
   background:#39393a;
   border-bottom:#48494a solid 7px;
   overflow:hidden;
   margin-left:334px;
   text-decoration:none;
   line-height: 0px;
   width:666px;
   height:50px;
   float:left;
   }
#nav ul
   {
   list-style:none;
   color:#FFF;
   }
#nav ul li
   {
   font:bold 15px Arial, Monaco, monospace;
   font-style:normal;
   color:#ffffff;
   background:#393a3b;
   width:44px;
   padding:12px 35px;
   margin:0 auto;
   float:left;
   }
#nav ul li:hover
   {
   border-top:5px solid #626262;
   }
   .active
   {
    border-top:5px solid #626262;
   }

Featured Area

featured-area-html-css
I’m using temporary text from an article of Designzzz, neglect that please.
<div id="line">
<h2> SOLUTIONS </h2>
<img src="images/line.png" alt="" />
<div>
<h3>It is a long established fact that a reader<br/>will be distracted by the readable content<br/>of a page when looking at its layout.</h3>
</div>
</div>
<div id="featured">
<a href="#"><img src="images/pic.jpg" alt="" /></a>
</div>
</div>

Featured Area CSS

And now the CSS. Always give the CSS it’s due value. It is sometimes neglected.
h2
 {
 font-family:Georgia, "Times New Roman", Times, serif;
 font-size:25px;
 color:#FFFFFF;
 padding:25px;
 margin-left:10px;
 margin-top:10px;
 line-height:2px;
 width:200px
 }
 h3
 {
 font-family:Arial, Helvetica, sans-serif;
 color:#FFFFFF;
 font-size:12px;
 margin-left: 20px;
 margin-top: 22px;
 font-weight:300;
 width:250px;
 text-align:justify;
 }
#line
   {
   margin-left:5px;
   width:300px;
   }
   #featured
   {
   float: right;
   height: 250px;
   margin-right:50px;
   margin-top:-96px;
   border:solid #333;
   }

Gallery Area’s HTML

html-css-tutorial
This is the slider/gallery whatever you wanna call it.
<div id="bar">
<div class="left-arrow">
<a href="#"><img src="images/left-arrow.png" alt="" /></a>
<div class="right-arrow">
<a href="#"><img src="images/right-arrow.png" alt="" /></a>
</div>
</div>
</div>
<div id="image">
<a href="#"><img src="images/img1.jpg" alt="" /></a>
<a href="#"><img src="images/img2.jpg" alt="" /></a>
<a href="#"><img src="images/img3.jpg" alt="" /></a>
<a href="#"><img src="images/img4.jpg" alt="" /></a>
 </div>

CSS for this Area

CSS here a little tricky, pay attention please :)
.left-arrow
 {
 margin-left:17px;
 padding-top:76px;
 }
 .right-arrow
 {
 margin-right:17px;
 float:right
 }
 #bar
 {
 background-color: #494a4a;
 width:100%;
 height:170px;
 }

 #image
 {
 margin-left:50px;
 margin-top:-166px;
 }
#image img
   {
   margin:0 7px;
   border: 2px solid #333;
   }

Moving Towards Content Area

free html-css- tutorial
This section doesn’t really has a name but it’s always present in corporate templates. I’m calling it Big-Box.
<div id="big-box">
<div class="box">
<h1>Finance</h1>
<div class="box-img">
<img src="images/box1.jpg" alt="" />
</div>
<h3>There are many variations of<br/> passages of Lorem Ipsum<br  /> available but the majority<br/> have suffered alteration in<br/> some form, by injected<br/> humour, or randomised words<br /> which don't look even slightly<br/> believable.</h3>
<div class="readmore">
<a href="#"><img src="images/read-more.jpg" alt="" /></a>
</div>
</div>
<div class="box">
<h1>Investment</h1>
<div class="box-img">
<img src="images/box2.jpg" alt="" />
</div>
<h3>There are many variations of<br/> passages of Lorem Ipsum<br  /> available but the majority<br/> have suffered alteration in<br/> some form, by injected<br/> humour, or randomised words<br /> which don't look even slightly<br/> believable.</h3>
<div class="readmore">
<a href="#"><img src="images/read-more.jpg" alt="" /></a>
</div>
</div>
<div class="box">
<h1>Research</h1>
<div class="box-img">
<img src="images/box3.jpg" alt="" />
</div>
<h3>There are many variations of<br/> passages of Lorem Ipsum<br  /> available but the majority<br/> have suffered alteration in<br/> some form, by injected<br/> humour, or randomised words<br /> which don't look even slightly<br/> believable.</h3>
<div class="readmore">
<a href="#"><img src="images/read-more.jpg" alt="" /></a>
</div>
</div>
<div class="box">
<h1>Management</h1>
<div class="box-img">
<img src="images/box4.jpg" alt="" />
</div>
<h3>There are many variations of<br/> passages of Lorem Ipsum<br  /> available but the majority<br/> have suffered alteration in<br/> some form, by injected<br/> humour, or randomised words<br /> which don't look even slightly<br/> believable.</h3>
<div class="readmore">
<a href="#"><img src="images/read-more.jpg" alt="" /></a>
</div>
</div>
</div>
</div>

Content Area CSS

CSS, this shouldn’t be so hard.
#big-box
 {
 background-color: #363637;
 width:91%;
 height:330px;
 margin:20px auto;
  }
 .box
 {
 background-color:#282828;
 border:#000 solid 1px;
 width:200px;
 height:342px;
 margin: 0 12px;
 float:left;
 }
h1
   {
   font-family:Georgia, "Times New Roman", Times, serif;
   font-size:18px;
   color: #ffffff;
   margin: 10px 52px;
   } 

   .box-img
   {
    margin: 6px;
   }
   .readmore
   {
   margin: 8px 38px;
   }

Footer HTML

free-html-css-tutorial
And last but not the least, the footer.
<div id= "bottom">
<div id="footer">
<div class="bottom-ul">
<ul>
<li class="color"><strong> Links </strong></li>
<li><a href="#"> Home </a></li>
<li><a href="#"> About </a></li>
<li><a href="#"> Products </a></li>
<li><a href="#"> Services </a></li>
 </ul>
</div>
<div class="bottom-ul">
<ul>
<li class="color"><strong> Networks </strong></li>
<li><a href="#"> Designer's Dare </a></li>
<li><a href="#"> Blasting art </a></li>
<li><a href="#"> Designzzz </a></li>
<li><a href="#"> Imagzzz </a></li>
 </ul>
</div>
<div class="bottom-ul">
<ul>
<li class="color"><strong> Contact </strong></li>
<li><a href="#"> Email: info@designzzz.com </a></li>
<li> Telephone #0900-78601 </li>
<li> Suite# 55 Floor #3<br /> Designzzz Building, ITville </li>
</ul>
</div>
<div class="bottom-ul">
<ul id="no-back">
<li class="color"><strong> Follow Us </strong></li>
 <li>
<a href="#"><img src="images/facebook.png" alt="" /></a>
<a href="#"><img src="images/twitter.png" class="icon" alt="" /></a>
</li>
<li>
<a href="#"><img src="images/Rss.png" alt="" /></a>
<a href="#"><img src="images/Stumble.png" alt="" /></a>
</li>
<li>
<img src="images/logo-bottom.png" alt="" />
</li>
 </ul>
</div>
<div id="bottom-text">Copyrighted by designzzz.com © 2011
   </div>
</div>
</div>

Footer CSS

We conclude it with the CSS.
#bottom
 {background:url(images/footer-bg.jpg) repeat;
 width: 100%; overflow: hidden; margin:33px auto 0 auto;}
 #footer
 {
 width:1000px;
 margin: 0 auto;
 }

 #footer ul
 {list-style:none;
 color:#ffffff;
 margin-left:42px;
 }

 #footer ul li
 {
 padding:10px;
 text-decoration: none;
 background:url(images/underline.png) no-repeat bottom;
  }
 .color
   {
   color:#000000;
   background:none !important;
   }

   .image
   {
   margin-left:50px;
   }

   .bottom-ul
   {
   float:left;width:22%;
   margin-left:30px;
   }
   .bottom-ul ul li img
   {
   margin: 0px 2px;
   }
   #bottom-text
   {
   text-align:center;
   color:#FFF;
   }

FINAL RESULT

I hope you liked it. Please, your suggestions are very important for me right now. Do comment.
html-css template
Live Preview

How to Create a Stylish Hotel Website – PSD to HTML


PREVIEW

Stylish-Hotel-template-design-in-Photoshop-tutorial
Live Demo

<Head> Area Code

As we are doing it in HTML5, and just a bit of jQuery for slideshow.
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hotel Template | Designzzz</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="js/script.js"></script>
<script type="text/javascript">
$(document).ready( function(){
   var buttons = { previous:$('#jslidernews3 .button-previous') ,
   next:$('#jslidernews3 .button-next') };

   var _complete = function(slider, index){
   $('#jslidernews3 .slider-description').animate({height:0});
   slider.find(".slider-description").animate({height:100})
   };       ;
   $('#jslidernews3').lofJSidernews( { interval : 4000,
   direction  : 'opacity',
   easing   : 'easeOutBounce',
   duration  : 1200,
   auto    : true,
   mainWidth:900,
   buttons   : buttons,
   onComplete:_complete } );
   });
   </script>
</head>

Moving Forward to Body

Starting <body> now.
<html>
<body>
<div id="main-container">  <!--all the codes carrying body content -->
</div>
</body>
</html>

CSS of <Body> and div “main-container”

@charset "utf-8";
 /* CSS Document */
*{
   margin:0;
   padding:0;
   }
body
   {
   background:url(images/bg.jpg) repeat-x;
   }
   article, aside, figure, footer, header, hgroup, menu, nav, section { display:block; }
   @font-face
   {
   font-family: Steiner;
   src:url("images/Opificio.ttf");
   }
   #main-container
   {
   width:1000px;
   overflow:hidden;
   margin:0 auto;
   }

HTML of Navigation and Logo

As you know, I try to keep my designing very simple. Usually business websites don’t require large headers so why waste important space there. I kept it minimal.
Photoshop-tutorial-in-photoshop
<header> <!-- Navigarion and Logo -->
<div class="nav-bg">
<nav>
<ul>
<li><a href="#">Home </a></li>
<li><a href="#">Hotel </a></li>
<li><a href="#">Booking </a></li>
<li><a href="#">Services </a></li>
<li><a href="#">Events </a></li>
<li><a href="#">Restaurant </a></li>
<li><a href="#">Locations </a></li>
</ul>
</nav>
<div id="logo">
<img src="images/logo.png" alt="" />
</div>
</div>
</header>

CSS of this Area

header
 {

 width:1000px;
 height:100px;
 }
 .nav-bg
 {
 background:url(images/nav-bg.png) repeat-x;
 width:1000px;
 height:58px;
 box-shadow: 0px 1px 3px #000;
 -moz-box-shadow: 0px 1px 3px #000;
 -webkit-box-shadow: 0px 1px 3px #000;
 }
 nav
 {
 width:760px;
 overflow:hidden;
 float:right;
 }
 nav ul
 {
 margin:0;
 padding:0;
 }
 nav ul li
 {
 font-family:"Opificio";
 font-size:17px;
 color:#ffffff;
 list-style:none;
 float:left;
 margin:18px 23px;
 }
 nav ul li a
 {
 color:#ffffff;
 text-decoration:none;
 }
 nav ul li a:hover
 {
 color:#c4c4c4;
 }
 #logo
 {
 width:206px;
 height:90px;
 float:left;
 margin:2px 11px;
 }

HTML of Featured Area

This is where jQuery plays its part. The slideshow.
Hotel-layout-tutorial-of-Photoshop
<div id="feature"><!-- slider area -->
<div id="jslidernews3" class="lof-slidecontent" style="width:900px; height:330px; margin:0 auto;">
<div class="preload">
</div>
<div  class="button-previous">Previous</div>
<div class="main-slider-content" style="width:900px; height:330px;">
<ul class="sliders-wrap-inner">
<li>
<img src="images/img-1.jpg" alt="" />
<div class="slider-description">
<div class="description-wrapper">
<h4>Some Dummy Text</h4>
</div>
</div>
</li>
<li>
<img src="images/img-2.jpg" alt="" />
<div class="slider-description">
<div class="description-wrapper">
<h4>Some Dummy Text</h4>
</div>
</div>
</li>
<li>
<img src="images/img-3.jpg" alt="" />
<div class="slider-description">
<div class="description-wrapper">
<h4>Some Dummy Text</h4>
</div>
</div>
</li>
<li>
<img src="images/img-4.jpg" alt="" />
<div class="slider-description">
<div class="description-wrapper">
<h4>Some Dummy Text</h4>
</div>
</div>
</li>
<li>
<img src="images/img-2.jpg" alt="" />
<div class="slider-description">
<div class="description-wrapper">
<h4>Some Dummy Text</h4>
</div>
</div>
</li>
</ul>
</div>
<div class="button-next">Next</div>
</div>
</div>

CSS of this Area

#feature
 {
 background:#fff;
 width:925px;
 overflow:hidden;
 padding:8px;
 border-radius:5px;
 -moz-border-radius: 5px;
 -webkit-border-radius:5px;
 margin:0 auto;
 margin-bottom:30px;
 }
 .lof-slidecontent
 {
 position:relative;
 overflow:hidden;
 border:#F4F4F4 solid 1px;
 }
 .lof-slidecontent .preload
 {
 height:100%;
 width:100%;
 position:absolute;
 top:0;
 left:0;
 z-index:100000;
 text-align:center;
 background:#FFF
 }
 .lof-slidecontent  ul.sliders-wrap-inner li
 {
 overflow:hidden;
 padding:0px;
 margin:0px;
 float:left;
 position:relative;
 }
 .lof-slidecontent  .lof-opacity
 {
 width:100%;
 height:100%;
 }
 .lof-slidecontent  .lof-opacity  li
 {
 position:absolute!important;
 top:0;
 left:0;
 float:inherit!important;
 }
   .lof-slidecontent .slider-description > div
   {
   padding:12px;
 }
.lof-slidecontent .slider-description
   {
   z-index:100px;
   position:absolute;
   bottom:0;
   right:0px;
   width:100%;
   border-radius: 5px 5px 5px 5px;
   background:url(images/slide-bar.png);
   color:#FFF;
   }
   .lof-slidecontent .slider-description h4
   {
   font-size: 18px;
   margin: 10px 0;
   padding: 0;
   }
   .lof-slidecontent  .button-next,
   .lof-slidecontent .button-previous
   {
   display:block;
   width:40px;
   color:#FFF;
   cursor:pointer;
   position:absolute;
   height:100%;
   z-index:40;
   top:0;
   text-indent:-999px;

   }
   .lof-slidecontent   .button-next
   {
   right:05px;
   background:url(images/right-arrow.png) no-repeat right center;
   }
   .lof-slidecontent  .button-previous
   {
   left:05px;
   background:url(images/left-arrow.png) no-repeat left center;
   }

HTML of Boxes Area

This is mainly the content area.
Hotel-layout-tutorial-of-Photoshop
<div id="content">
<div class="block">
<div class="hd-bg">
<div class="circle">
</div>
<div class="hd">
<p> Services </p>
</div>
<div class="circle">
</div>
</div>
<div class="img">
<img src="images/img-5.jpg" alt="" />
</div>
<div class="write">
<p>We publish a Photoshop tutorial, in the second article we present the download file and in the last article.</p>
</div>
<div class="readmore">
<p><a href="#"> Read more </a></p>
</div>
</div>
<div class="block">
<div class="hd-bg">
<div class="circle">
</div>
<div class="hd">
<p> Events </p>
</div>
<div class="circle">
</div>
</div>
<div class="img">
<img src="images/img-6.jpg" alt="" />
</div>
<div class="write">
<p>We publish a Photoshop tutorial, in the second article we present the download file and in the last article.</p>
</div>
<div class="readmore">
<p><a href="#"> Read more </a></p>
</div>
</div>
<div class="block">
<div class="hd-bg">
<div class="circle">
</div>
<div class="hd">
<p> Restaurant </p>
</div>
<div class="circle">
</div>
</div>
<div class="img">
<img src="images/img-7.jpg" alt="" />
</div>
<div class="write">
<p>We publish a Photoshop tutorial, in the second article we present the download file and in the last article.</p>
</div>
<div class="readmore">
<p><a href="#"> Read more </a></p>
</div>
</div>
</div>

CSS of this Area

#content
 {
 width:960px;
 height:330px;
 margin:0 auto;
 padding:14px 0;
 }
 .block
 {
 background:#fff;
 width:266px;
 height:325px;
 border-radius:5px;
 -moz-border-radius: 5px;
 -webkit-border-radius:5px;
 margin-left:40px;
 float:left;
 box-shadow: 2px 2px 2px -2px #000;
 -moz-box-shadow: 2px 2px 2px -2px #000;
 -webkit-box-shadow: 2px 2px 2px -2px #000;
 }
 .hd-bg
 {
 background:#483e37;
 width:168px;
 height:17px;
 margin:10px 45px;
 border-radius:10px;
 -moz-border-radius: 10px;
 -webkit-border-radius: 10px;
 padding:17px 4px;
 }
 .circle
 {
 background:#766254;
 border-radius:10px;
 -moz-border-radius: 10px;
 -webkit-border-radius: 10px;
 width:15px;
 height:15px;
 float:left;
 }
 .hd
 {
 width:135px;
 height:25px;
 float:left;
 margin:-7px 0;
 }
 .hd p
 {
 font-family: "Opificio";
 font-size:25px;
 color:#fff;
 text-align:center;
 }
 .img
 {
 width:239px;
 height:135px;
 margin-left:13px;
 }
 .write
 {
 width:260px;
 overflow:hidden;
 }
 .write p
 {
 color:#000;
 font-family:Arial, Helvetica, sans-serif;
 font-size:14px;
 margin:5px 19px;
 text-align:justify;
 }
 .readmore
 {
 background:url(images/read-bg.jpg);
 width:103px;
 height:40px;
 float:right;
 margin:5px 7px;
 border-radius:15px;
 -moz-border-radius: 15px;
 -webkit-border-radius:15px;
 border:2px solid #766254;
 }
 .readmore p
 {
 font-size:18px;
 color:#fff;
 text-align:center;
 margin-top:8px;
 }
 .readmore p a
 {
 color:#fff;
 text-decoration:none;
 }
 .readmore p a:hover
 {
 color:#960;
 text-decoration:none;
 }

HTML of Articles Area

Some hotels and resort also like to host a blog or publish articles to guide their guests. This is a place to accommodate those articles. And a sidebar type thingy for add “latest news” and such stuff.
template-html5-CSS3
<div id="content1">
<div class="block1">
<div class="welcome">
<p>Welcome</p>
</div>
<div class="image">
</div>
<div class="text">
<p>This is the last tutorial of Real Estate Template series.  As our regular readers know that we always make a series of articles, in the first we publish a Photoshop tutorial, in the second article we present the download file and in the last article, we publish the HTML CSS tutorial. The articles of web design series are published every Friday.</p>
</div>
<div class="readmore">
<p><a href="#"> Read more </a></p>
</div>
</div>
<div class="block2">
<div class="hd-bg">
<div class="circle">
</div>
<div class="hd">
<p> Packages </p>
</div>
<div class="circle">
</div>
</div>
<div class="offers">
<div class="main-offer">
<div class="bullets">
<img src="images/bullets.png" alt="" />
</div>
<div class="package">                                                                       <p>Business Package  ($745)</p>
</div>
</div>
<div class="main-offer">
<div class="bullets">
<img src="images/bullets.png" alt="" />
</div>
<div class="package">                                                                       <p>Time for family  ($452)</p>
</div>
</div>
<div class="main-offer">
<div class="bullets">
<img src="images/bullets.png" alt="" />
</div>
<div class="package">                                                                       <p>New Year 2011  ($854)</p>
</div>
</div>
<div class="main-offer">
<div class="bullets">
<img src="images/bullets.png" alt="" />
</div>
<div class="package">                                                                       <p>New Year 2012 ($854)</p>
</div>
</div>
</div>
</div>
</div>

CSS of this Area

#content1
 {

 width:960px;
 height:240px;
 margin:0 auto;
 padding:14px 0;
 }
 .block1
 {
 background:#f1efef;
 width:577px;
 height:230px;
 border-radius:5px;
 -moz-border-radius: 5px;
 -webkit-border-radius:5px;
 box-shadow:1px 2px 2px 2px #bfbfbf;
 -moz-box-shadow: 1px 2px 2px 2px #bfbfbf;
 -webkit-box-shadow: 1px 2px 2px 2px #bfbfbf;
 margin-left:40px;
 float:left;
 }
 .welcome
 {
 color:#d57416;
 font-family: "Opificio";
 font-size:28px;
 margin-left:10px;
 }
 .image
 {
 background:url(images/img-8.jpg) no-repeat;
 width:155px;
 height:135px;
 margin:5px 8px;
 float:left;
 }
 .text
 {
 background:#d9d2ba;
 width:400px;
 height:140px;
 float:left;
 border-radius:5px;
 -moz-border-radius: 5px;
 -webkit-border-radius:5px;
 }
 .text p
 {
 font-size:14px;
 margin:13px 6px;
 line-height:22px;
 text-align:justify;
 }
 .block2
 {
 background:#f1efef;
 float: left;
 height: 230px;
 margin-left: 29px;
 width: 274px;
 border-radius:5px;
 box-shadow:1px 2px 2px 2px #bfbfbf;
 -moz-box-shadow: 1px 2px 2px 2px #bfbfbf;
 -webkit-box-shadow: 1px 2px 2px 2px #bfbfbf;

 }
 .offers
 {
 background: #d9d2ba;
 width:253px;
 height:150px;
 margin-left:11px;
 border-radius:5px;
 -moz-border-radius: 5px;
 -webkit-border-radius:5px;
 }
 .main-offer
 {
 width:250px;
 height:20px;
 padding:7px 0;
 }
 .bullets
 {
 width:20px;
 height:20px;
 margin:0 12px;
 float:left;
 }
 .package
 {
 width:200px;
 height:20px;
 float:left;
 font-style:17px;
 }

HTML of Footer Area

We didn’t do much with our header, why should we waste time on the footer?
The most you can give here is a contact form, but that would require a lot of space so I avoided that.
Stylish-template-design-in-Photoshop-tutorial
<footer>
<div id="fnav">
<ul>
<li><a href="#">Home </a></li>
<li><a href="#">Hotel </a></li>
<li><a href="#">Booking </a></li>
<li><a href="#">Services </a></li>
<li><a href="#">Events </a></li>
<li><a href="#">Restaurant </a></li>
<li><a href="#">Locations </a></li>
</ul>
</div>
<div id="subscribe">
<p>Subscribe Us</p>
<div class="icons">
<img src="images/fb.png" alt="" />
</div>
<div class="icons">
<img src="images/plus.png" alt="" />
</div>
<div class="icons">
<img src="images/rt.png" alt="" />
</div>
<div class="icons">
<img src="images/utube.png" alt="" />
</div>
</div>
<div id="contact">
<h2> Contact Us </h2>
<p>7th Sky Heaven Street</p>
<p>Call Us : 1854654</p>
</div>
<div id="cprt">
<p>2012 © Copyrighted Designzzz.com</p>
</div>
</footer>

CSS of this Area

footer
 {
 background:url(images/footer-bg.png) repeat-x;
 width:960px;
 height:140px;
 margin:0 auto;
 border-radius:5px;
 }
 #fnav
 {
 width:705px;
 height:40px;
 float:left;
 }
 #fnav ul
 {
 margin:0px;
 padding:0px;
 }
 #fnav ul li
 {
 color: #FFFFFF;
 float: left;
 font-size: 16px;
 font-family: "Opificio";
 list-style: none outside none;
 margin:4px 12px;
 padding: 9px 10px;
 text-decoration: none;
 }
 #fnav ul li a
 {
 color:#fff;
 text-decoration:none;
 }
 #fnav ul li a:hover
 {
 color:#c4c4c4;
 }
 #subscribe
 {

 width:150px;
 height:125px;
 float:right;
 margin:0 30px;
 }
 #subscribe p
 {
 font-family:"Opificio";
 font-size:22px;
 color:#666;
 margin:7px 0;
 }
 .icons
 {
 width:50px;
 overflow:hidden;
 margin-left:13px;
 float:left;
 }
 #contact
 {

 width:180px;
 height:74px;
 float:left;
 padding:5px 10px;
 }
 h2
 {
 font-family: "Opificio";
 font-size:16px;
 color:#666;
 margin:3px 5px;
 }
 #contact p
 {
 font-family: "Opificio";
 font-size:14px;
 color:#fff;
 margin:2px 6px;
 }
 #cprt
 {
 color: #C4C4C4;
 float: left;
 font-size: 12px;
 overflow: hidden;
 text-align: center;
 width: 960px;
 }
Live Demo