• HTML/CSS
  • jQuery
  • PHP
  • JS
  • AJAX
  • MySQL
  • Res
  • XSLT
  • Contact Us
  • HTML/CSS
    • Game Development →
      • HTML5 Game Development - Lesson 1
      • HTML5 Game Development - Lesson 2
      • HTML5 Game Development - Lesson 3
      • HTML5 Game Development - Lesson 4
      • HTML5 Game Development - Lesson 5
      • HTML5 Game Development - Lesson 6
      • HTML5 Game Development - Lesson 7
    • Menus →
      • CSS3 multilevel menu with transition and animation
      • Marble Style CSS3 Navigation Menu
      • Toggle CSS3 Bottom Navigation Bar
      • Accordian like CSS3 Onclick Vertical Navigation
      • Multilevel CSS3 Metal Navigation with icons
      • Click-action CSS3 Dropdown Menu with jQuery
      • Click action Multi-level CSS3 Dropdown Menu
      • CSS3 Animated Menu
      • CSS3/jQuery crossbrowser Drop-down menu with tabs
      • CSS3 Drop sliding list Menu #6
      • CSS3 Slideout Menu #5
      • CSS3 Dropdown Menu #4
      • CSS3 Dropdown Menu #3
      • CSS3 Dropdown Menu #2
      • Cool CSS3 Dropdown Menu
    • Templates →
      • Robo Splash Page Layout
      • 'Mono' HTML5 CSS3 Single Page Layout
      • HTML5/CSS3 single page layout - Art theme
      • Attractive HTML CSS Anime Theme Website Layout
      • HTML CSS website layout #4 - Gray theme
      • Dark and clean HTML CSS website layout
      • HTML5&CSS3 single page layout - Rock portal
      • E-Store HTML5 CSS3 Single Page Layout
      • Under Water Themed HTML5 & CSS3 single page Layout
      • HTML5 & CSS3 Single Page Web Layout
    • HTML5 tutorials →
      • HTML5 Canvas Slideshow
      • HTML5 canvas - Custom brush #2 (Bubble brush)
      • HTML5 canvas - Custom brush (BezierCurveBrush)
      • HTML5 Face Builder
      • Pure HTML5 file upload
      • HTML5 image crop tool
      • HTML5 animation - patterns with loops
      • HTML5 3D circle text with shadows
      • HTML5 canvas pixelate effect
      • Animated Moving Clouds using HTML5
      • Animated Fireplace in HTML5
      • 3D Animated Box HTML5 WebGL Photo Slideshow
      • Your Own Paint Program
      • Image Zoomer in HTML5 Canvas
      • Photo Array in WebGL
      • HTML5 Canvas Image Color Picker
      • HTML5 Image Effects App - Adding Horizontal Flip
      • Keyboard Sensitive 3D Twisted Images in WebGl
      • Animated 3D WebGL Demonstration
      • HTML5 Image Effects App - Adding Noise and Invert
      • HTML5 Canvas Image Effects App - Adding Blur
      • Attractive Presentation with HTML5
      • HTML5 Canvas App for Online Image Enhancements
      • Water Ripple effect using HTML5 canvas
      • Animated 3D canvas object in HTML5
    • CSS3 tutorials →
      • CSS3 Image Hover Effects
      • CSS3 Modal Popups
      • Isometric interactive interior guide
      • Analog Clock with Pure CSS3
      • CSS3 Optical Illusions
      • CSS3 Animated Photo Slider
      • CSS3 Christmas Tree with Snow
      • How to Create a Pure CSS3 Slideshow
      • CSS3 Drop Caps
      • Pure CSS3 Slider
      • Fantastic Animated Buttons using CSS3
      • How to Create a Pure CSS3 Animated Photo Gallery
      • Toggle CSS3 Bottom Navigation Bar
      • How to Generate Runtime Multi-columns with CSS3
      • Multiple backgrounds and Animation with CSS3
  • jQuery
    • Photo album with jQuery Fotorama
    • Photo album with jQuery Chop Slider
    • Cool Background Image Sliding effect with jQuery
    • jQuery Templates - Usage Practice
    • Photo Album with Galleriffic jQuery plugin
    • Fantastic Photo Album with TN3
    • Ajaxy Photo Gallery (jQuery) with Custom Images Sets
    • Rotating Slider with Easing Effects in jQuery
    • Animated jQuery Progressbar Plugin
    • Nice CSS3 Lightbox Gallery
    • Photo Album with Highslide
    • Using Flux Slider jQuery plugin
    • Ajaxy Chained Selects
    • Modern jQuery Pagination for Content
    • Your own jQuery Slider Plugin
    • Attractive Photo Gallery using SmartGallery
    • Animated Photo Gallery using jQuery (Slider Kit)
  • PHP
    • Powerful Chat System - Lesson 3
    • Powerful Chat System - Lesson 2
    • Powerful Chat System
    • Access Control with Bit Masks
    • Own XML/JSON/HTML API with PHP
    • Your Own Ajax Poll System
    • Diary style PHP Guestbook
    • Smooth Curve Graphs with PHP and GD
    • Your Own Commenting System from Scratch
    • Autocomplete with PHP, jQuery, MySQL and XML
    • Your Own 5 Stars Voting System
    • How to use Memcache with PHP
    • How to install APC on Linux
    • How to Use APC Caching with PHP
    • Watermark processing on images using PHP and GD
    • ID3 Tags Reader with PHP
    • Advance Level Login system with Logic captcha
    • Protection and Methodologies of Security Vulnerabilities
    • How to Resize images on Server Side
    • How to Protect any Site from Spam using Akismet
    • Phar - PHP archiving practice
  • JS
    • Form Validation with Javascript and PHP
    • Fullscreen Javascript Slide navigation
    • Photo Scrambler grid in javascript
    • Photo Slideshow (zoom fading) effect
    • Custom scrollbars - cross-browser solution
    • Flare Lens Effect
    • Own RSS Reader Using Google Feed API
    • Cross-browser Wave Effects
    • Cross-browser Supported Image Skew effect
  • Res
    • ← Infographic
      • The Evolution of Languages
    • ← jQuery plugin roundups
      • December 2011
      • November 2011
      • 10 fresh jQuery Tutorials
      • October 2011
      • September 2011
      • 10 fresh Ajax related jQuery plugins
      • August 2011
      • 10 Oven Fresh jQuery Plugins for UI
      • 10 Most creative jQuery plugins for tables
      • 10 Most Creative jQuery Navigation Plugins
      • 10 fresh jQuery plugins for working with forms and UI
      • 10 superb jQuery plugins for working with images
    • ← HTML5 stuff
      • HTML5 and Games
      • 10 Fresh HTML5 Tutorials
      • Fresh impressing WebGL demonstrations
      • Most impressing HTML5 with WebGL demonstrations
      • 10 Fresh & Impressive HTML5 Canvas (and WebGL) Examples
      • 10 Exceptional Examples of HTML5 Canvas and Applications
    • ← Mobile
      • How to start developing own applications for Android
      • 10 Fresh Android tutorials
      • 10 Attractive Tutorials for Developing iPhone Applications
      • 10 Attractive android tutorials for developers
      • 10 Fresh iPad Apps for Web Designers & Developers
      • 10 Fresh Android Apps for Web Designers & Developers
      • 10 Fresh iPhone Apps for Web Designers & Developers
      • Top 10 iPhone apps for working with graphics
    • 12 Unique Navigation Menu Designs For Your Inspiration
    • 15 Unique and Creative Layouts 2011
    • 12 Beautifully Creative Flash Websites of 2011
    • Fresh collection of Original Captchas
  • XSLT
    • Animated forums using XSLT and Ajaxy
    • Multilevel Menu using XSLT
    • Delicious bookmarks using XSLT transformation
    • XPath visually
    • Tags cloud using XSLT transformation
    • Youtube videos using XSLT transformation
  • Contact Us
KEEP IN TOUCH

Creating an Under Water Themed HTML5 & CSS3 single page Layout

Jun10
2011
4 Comments Written by admin
Creating a HTML5 & CSS3 single page template #2

Creating next HTML5 & CSS3 single page template #2 – Under Water

Today we will create another one HTML5 web template (named as Under Water) with combination of CSS3 and jQuery. Current template will contain header area (with logo and navigation menu), promo area (I will use jQuery jCarouselLite Slider), center area with some content, bottom footer area (which you can use for footer links as example, or social icons).

Live Demo
download in package

Now, you can download package, check our prepared demo and lets start!


Step 1. Photoshop

As usual, quite each webmaster (designer) start thinking about initial idea which he like to build. And, I can suggest to use Photoshop to draw main layout – how all should looks

Photoshop step

And only after – we can start thinking about main layout of that page – HTML

Step 2. HTML

I separated whole layout to few sections:

  • header section – place, where we will put our logo, menu, promo (carousel) slider
  • central section – place for main content with some custom content
  • footer section – where you will able to put any custom links, company name, social icons

In HTML code I will use next HTML5 tags: <header>, <nav>, <section>, <article>, <figure> and <footer>. Ok, lets check code of our sample

index.html

<!DOCTYPE html><!-- The new doctype -->
<html lang="en">
<head>
    <title>Creating a HTML5 &amp; CSS3 Single Page Web Layout #2 Under Water | Script tutorials</title>
    <meta charset="utf-8">

    <!-- Linking styles -->
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="screen">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
    <link rel="stylesheet" href="css/menu.css" type="text/css" media="screen"> 

    <!-- Linking scripts -->
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/superfish.js" type="text/javascript"></script>
    <script src="js/script.js" type="text/javascript"></script>
    <script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="js/jcarousellite_1.0.1.js" type="text/javascript"></script>

    <!--[if lt IE 9]>
    <script type="text/javascript" src="js/html5.js"></script>
    <![endif]-->
</head>
<body id="page1">
    <header><!-- Defining the header section of the page -->
        <div class="main">
            <div class="container">
                <div class="wrapper p1">
                    <div class="grid_18">
                        <h1><a class="logo" href="#">Under Water</a></h1>
                    </div>
                    <div class="grid_6">
                        <form id="search-form" action="" method="post">
                            <fieldset>
                                <div class="wrapper">
                                    <input type="text" name="search" />
                                    <a href="#" onclick="">Search</a>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
                <div class="grid_24">
                    <nav><!-- Defining the navigation menu -->
                        <ul class="menu">
                            <li class="first"><a class="item" href="http://www.script-tutorials.com/">Home</a></li>
                            <li><a class="item" href="http://www.script-tutorials.com/">Tutorials</a>
                                <ul style="display: none; visibility: hidden;">
                                    <li><a href="http://www.script-tutorials.com/category/html-css/">HTML / CSS</a></li>
                                    <li><a href="http://www.script-tutorials.com/category/jquery/">JS / jQuery</a></li>
                                    <li><a href="http://www.script-tutorials.com/category/php/">PHP</a></li>
                                    <li><a href="http://www.script-tutorials.com/category/mysql/">MySQL</a></li>
                                    <li><a href="http://www.script-tutorials.com/category/xslt/">XSLT</a></li>
                                    <li><a href="http://www.script-tutorials.com/category/ajax/">Ajax</a></li>
                                </ul>
                            </li>
                            <li><a class="item" href="http://www.script-tutorials.com/category/resources/">Resources</a></li>
                            <li><a class="item" href="http://www.script-tutorials.com/tag/html5/">Tags</a>
                                <ul>
                                    <li><a href="http://www.script-tutorials.com/tag/animation/">animation</a></li>
                                    <li><a href="http://www.script-tutorials.com/tag/html5/">html5</a></li>
                                    <li><a href="http://www.script-tutorials.com/tag/captcha/">captcha</a></li>
                                    <li><a href="http://www.script-tutorials.com/tag/gallery/">gallery</a></li>
                                    <li><a href="http://www.script-tutorials.com/tag/animation/">animation</a></li>
                                </ul>
                            </li>
                            <li><a class="item" href="http://www.script-tutorials.com/about/">About</a></li>
                            <li><a class="item" href="http://www.script-tutorials.com/html5-css3-page-template-2-under-water/">Go Back To The Tutorial</a></li>
                        </ul>
                    </nav>
                </div>
                <div class="clear"></div>
            </div>
            <div class="carousel gallery"><!-- Promo slider -->
                <a class="prev" href="#">prev</a>
                <div class="jCarouselLite">
                    <ul>
                        <li><img src="images/promo/p1.jpg" alt="" /></li>
                        <li><img src="images/promo/p2.jpg" alt="" /></li>
                        <li><img src="images/promo/p3.jpg" alt="" /></li>
                        <li><img src="images/promo/p4.jpg" alt="" /></li>
                        <li><img src="images/promo/p5.jpg" alt="" /></li>
                        <li><img src="images/promo/p6.jpg" alt="" /></li>
                    </ul>
                </div>
                <a class="next" href="#">next</a>

            </div>
        </div>
    </header>

    <section id="content"><!-- Defining the main content section of the page -->
        <div class="main">
            <div class="container">
                <div class="bg">
                    <div class="wrapper">
                        <article class="grid_16 alpha">
                            <div class="pref">
                                <h2><strong>Welcome</strong> to The Under Water!</h2>
                                <div class="wrapper img-indent-bot">

                                    <figure class="img-indent frame"><img src="images/about.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        Welcome / Promo text. Welcome / Promo text. Welcome / Promo text. Welcome / Promo text.
                                    </div>
                                </div>

                                <h3 class="p3">Top Under Water News</h3>

                                <div class="wrapper margin-bot">
                                    <figure class="img-indent2"><img src="images/tn1.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <p class="p0">Contributor Kerri Hatt shares this photo of a massive 22.3 lb lobster her dad and brother caught while fishing on the Bay of Fundy in N.B. on #1</p>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div>

                                <div class="wrapper margin-bot">
                                    <figure class="img-indent2"><img src="images/tn2.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <p class="p0">Contributor Kerri Hatt shares this photo of a massive 22.3 lb lobster her dad and brother caught while fishing on the Bay of Fundy in N.B. on #2</p>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div>

                                <div class="wrapper margin-bot">
                                    <figure class="img-indent2"><img src="images/tn3.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <p class="p0">Contributor Kerri Hatt shares this photo of a massive 22.3 lb lobster her dad and brother caught while fishing on the Bay of Fundy in N.B. on #3</p>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div>

                                <div class="wrapper margin-bot">
                                    <figure class="img-indent2"><img src="images/tn4.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <p class="p0">Contributor Kerri Hatt shares this photo of a massive 22.3 lb lobster her dad and brother caught while fishing on the Bay of Fundy in N.B. on #4</p>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div>

                            </div>
                        </article>
                        <article class="grid_8 omega">

                            <div class="suf">

                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp1.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Underwater Exploration</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp2.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Milestones in Underwater Photography</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp3.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Coral Reefs</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp4.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Underwater Portraits</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp5.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Marine Marvels</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp6.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Coral</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp7.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Underwater Landscapes</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>
                                <div class="box"><div class="wrapper">
                                    <figure class="img-indent3 frame"><img src="images/imgp8.jpg" alt="" /></figure>
                                    <div class="extra-wrap">
                                        <h4>Colorful Sea Creatures</h4>
                                        <a class="link" href="#">More</a>
                                    </div>
                                </div></div>

                            </div>
                        </article>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <footer><!-- Defining the footer section of the page -->
        <div class="main">
            <div class="row-1">
                <ul class="list-services">
                    <li><a title="Facebook" href="#"><img src="images/facebook.png" alt="" /></a></li>
                    <li><a title="Flickr" href="#"><img src="images/flickr.png" alt="" /></a></li>
                    <li><a title="Twitter" href="#"><img src="images/twitter.png" alt="" /></a></li>
                    <li><a title="RSS" href="#"><img src="images/rss.png" alt="" /></a></li>
                </ul>
            </div>
            <div class="row-2">
                <div class="container">
                    <div class="bg">
                        <div class="wrapper">
                            <div class="grid_24">
                                <div class="indent">
                                    Under Water &copy; 2011 &nbsp;:&nbsp; <a class="link" href="#">Privacy</a> </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>
</body>
</html>

Step 3. JS

js/html5.js, js/jcarousellite_1.0.1.js, js/jquery.js, js/jquery.easing.1.3.js and js/superfish.js

This is all used libraries: jQuery, jCarouselLite and Superfish (available in package). Rest custom JS code located in another file:

js/script.js

$(document).ready(function() {
    $('ul.menu').superfish({
        delay: 500,
        animation: {opacity:'show',height:'show'},
        speed: 'normal',
        autoArrows: false,
        dropShadows: false
    }); 

    $('.gallery .jCarouselLite').jCarouselLite({
        btnNext: '.gallery .next', btnPrev: '.gallery .prev',
        scroll: 1,
        mouseWheel: true,
        auto: 10000,
        speed: 1000,
        vertical: false,
        circular: true,
        visible: 3,
        start: 0
    });

    $('.box').hover(function(){
        $(this).addClass('alt');
    }, function(){
        $(this).removeClass('alt');
    });

    $('.list-services li a').hover(function(){
            $(this).stop(true,false).animate({marginTop:'-8px'}, {easing:'easeOutBounce', duration: 500});
            $(this).css('paddingBottom','8px');
        },function(){
            $(this).stop(true,false).animate({marginTop:'0'}, {easing:'easeOutBounce', duration: 500});
            $(this).css('paddingBottom','0');
    });
});

Step 4. CSS

css/reset.css

This is reset file to reset stylesheet, and, here are result minimized css file with all necessary styles for our demo:

css/style.css

article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video {display:block;}
mark, rp, rt, ruby, summary, time {display:inline;}

html {
width:100%;
}

body {
background:url(../images/body.gif) repeat-x scroll center top #fff;
border-top:5px solid #162d50;
color:#3a3a3a;
font-family:Arial, Helvetica, sans-serif;
font-size:100%;
min-width:938px;
}

.bg {
background:#fcfcfc;
margin:0 auto;
padding:45px 0 28px;
width:930px;
}

.main {
font-size:0.8125em;
line-height:1.538em;
margin:0 auto;
padding:0;
width:938px;
}

a {
color:#274b83;
outline:none;
}

a:hover {
text-decoration:none;
}

.wrapper {
overflow:hidden;
width:100%;
}

.extra-wrap {
overflow:hidden;
}

p {
margin-bottom:18px;
}

.p0 {
margin-bottom:0;
}

.p1 {
margin-bottom:8px;
}

.p3 {
margin-bottom:30px;
}

.frame {
background:#00102d;
padding:1px;
}

/*other*/
.margin-bot {
margin-bottom:35px;
}
.spacing {
margin-right:35px;
}
.indent {
padding:0 0 0 14px;
}
.indent2 {
padding:0 9px 0 23px;
}
.pref {
padding:0 23px 0 18px;
}
.suf {
padding-right:18px;
}
.indent-bot {
margin-bottom:20px;
}
.indent-bot2 {
margin-bottom:30px;
}
.indent-bot3 {
margin-bottom:45px;
}
.img-indent-bot {
margin-bottom:25px;
}
.img-indent {
float:left;
margin:0 25px 0 0;
}
.img-indent2 {
float:left;
margin:0 18px 0 0;
}
.img-indent3 {
float:left;
margin:0 10px 0 0;
}
.prev-indent-bot {
margin-bottom:10px;
}

.menu li a,.link,.logo {
text-decoration:none;
}

/*header*/
header {
min-height:490px;
position:relative;
width:100%;
z-index:2;
}

h1 {
margin:0 0 0 -2px;
padding:6px 0 0;
position:relative;
}

.logo {
background:url(../images/logo.png) no-repeat scroll left top transparent;
color:transparent;
display:inline-block;
font-size:80px;
line-height:1.2em;
}
#search-form {
overflow:hidden;
padding-top:75px;
}

#search-form input {
background:#3C7ABD;
border-bottom:none;
border-left:1px solid #3C7ABD;
border-right:none;
border-top:1px solid #3C7ABD;
color:#fff;
float:left;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
line-height:1.2em;
margin:0;
padding:5px 10px;
width:144px;
}

#search-form a {
background:#fcfcfc;
border:1px solid #00102d;
color:#363636;
display:inline-block;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:700;
line-height:1.2em;
padding:6px 10px 5px 11px;
text-decoration:none;
}

#search-form a:hover {
background:#3C7ABD;
color:#fcfcfc;
}

/*carousel promo*/
.carousel {
background:url(../images/carousel-tail.gif) 0 0 repeat;
height:300px;
padding:10px;
position:relative;
width:918px;
}

.carousel .prev {
background:url(../images/carousel-prev.png) left top no-repeat;
display:block;
height:49px;
left:10px;
position:absolute;
text-indent:-5000px;
top:146px;
width:35px;
z-index:99;
}

.carousel .next {
background:url(../images/carousel-next.png) left top no-repeat;
display:block;
height:49px;
position:absolute;
right:10px;
text-indent:-5000px;
top:146px;
width:35px;
z-index:99;
}

.carousel .prev:hover,.carousel .next:hover {
background-position:left bottom;
}

.carousel li {
border:1px solid #00102d;
margin-right:7px;
}

.jCarouselLite {
height:100%;
overflow:hidden;
width:918px !important;
}

/*center content*/
#content {
padding:0;
position:relative;
width:100%;
z-index:1;
}

h2 {
color:#1f232c;
font-size:30px;
letter-spacing:-1px;
line-height:1.2em;
margin:0 0 28px;
}

h2 strong {
color:#162d50;
text-transform:uppercase;
}

h3 {
color:#1f232c;
font-size:22px;
line-height:1.2em;
margin:0 0 35px;
text-transform:uppercase;
}

h4 {
color:#1f232c;
font-size:15px;
line-height:1.2em;
margin:3px 0;
text-transform:uppercase;
}

.border-bot {
background:url(../images/pic-3.gif) 0 bottom repeat-x;
padding-bottom:45px;
width:100%;
}

.box {
background:#f9f9f9;
border:1px solid #e9e9e9;
color:#adadad;
cursor:pointer;
line-height:16px;
margin-bottom:1px;
padding:12px 5px 12px 12px;
}

.box.alt {
background:url(../images/carousel-tail.gif) 0 0 repeat;
color:#fcfcfc;
}

.box.alt h4 {
color:#fcfcfc;
}

.link {
color:#888;
cursor:pointer;
font-size:13px;
}

.link:hover {
color:#AAA;
}

/*footer*/
footer {
width:100%;
}

footer .main {
color:#3a3a3a;
font-size:12px;
line-height:18px;
}

footer .bg {
padding:10px 0;
text-align:center;
}

.row-1 {
background:url(../images/carousel-tail.gif) 0 0 repeat;
min-height:62px;
padding:15px 0 0;
position:relative;
width:100%;
}

.list-services {
float:right;
margin:0;
padding:0 20px;
}

.list-services li {
float:left;
padding:8px 5px 0 0;
}

.list-services li a {
display:inline-block;
}

/*for layout*/
.container {
margin-left:auto;
margin-right:auto;
width:935px;
}

.grid_6,.grid_8,.grid_16,.grid_18,.grid_24 {
display:inline;
float:left;
margin-left:5px;
margin-right:5px;
position:relative;
}

.alpha {
margin-left:0;
}

.omega {
margin-right:0;
}

.container .grid_6 {
width:230px;
}

.container .grid_8 {
width:310px;
}

.container .grid_16 {
width:605px;
}

.container .grid_18 {
width:670px;
}

.container .grid_24 {
width:915px;
}

.clear {
clear:both;
display:block;
height:0;
overflow:hidden;
visibility:hidden;
width:0;
}

Plus one more file – styles for navigation menu:

css/menu.css

.menu {
background:url(../images/menu-tail.gif) 0 0 repeat-x #b9c0c5;
min-height:64px;
padding:0;
width:100%;
}
.menu li {
float:left;
padding:0;
position:relative;
}
.menu li.first {
padding:0 0 0 12px;
}
.menu li a {
background:none;
color:#00102d;
display:block;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
font-weight:700;
line-height:44px;
padding:10px 18px;
position:relative;
}
.menu li a:hover,.menu li a.active,.menu li.sfHover > a {
background:#3c7abd;
color:#fcfcfc;
}
.menu ul {
background:#3c7abd;
padding:3px;
position:absolute;
top:-999em;
width:138px;
}
.menu ul li {
width:100%;
}
.menu li:hover {
visibility:inherit;
}
.menu li li {
padding:0;
}
.menu li li a {
color:#ced6db !important;
font-size:13px;
font-weight:400;
line-height:30px;
padding:0 0 0 15px;
text-align:left;
}
.menu li li a:hover {
background:#142a4b;
}
.menu li:hover ul,.menu li.sfHover ul {
left:0;
top:64px;
z-index:999;
}
ul.menu li:hover li ul,ul.menu li.sfHover li ul {
top:-999em;
}

Live Demo
download in package

Conclusion

Now, our new template ‘Under Water’ is complete! You can use this as is, but please leave the back link intact. Don`t forget to say thanks :)

About: admin:
I am web developer with huge experience (in web languages and even in system languages). Also I am the founder of current website (and several another). I like to write blogs about web development/design. Feel free to Follow us on Twitter: tweetmeme_screen_name='AramisGC';
If you Enjoyed our article don't forget to Share the love with your friends.
    Tweet
   
   
Written by: admin on June 10, 2011.

Related Stuff You Will Love!

  1. Creating a HTML5 & CSS3 Single Page Web Layout
    Creating a HTML5 & CSS3 Single Page Web Layout
  2. Creating ‘Mono’ HTML5 CSS3 Single Page Layout
    Creating ‘Mono’ HTML5 CSS3 Single Page Layout
  3. Creating new HTML5/CSS3 single page layout – Art theme
    Creating new HTML5/CSS3 single page layout – Art theme
  4. Creating an E-Store HTML5 CSS3 Single Page Layout
    Creating an E-Store HTML5 CSS3 Single Page Layout
Posted in HTML/CSS, jQuery - Tagged css3, html css, html5, layout, template, tutorial, web
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« Creating a CSS3 Dropdown Menu #2
» 10 superb jQuery plugins for working with images

2 Comments

  1. sajjakumar's Gravatarsajjakumar
    June 13, 2011 at 11:46 am | Permalink

    Your posting are very fine. Sir i am the bigginer in this field. I was so impressed by your tutorials.
    I have a task. If it is possible please help me.
    As your modern Pagination using Jquery example, I am requiring the following things:
    content tobe split depending upon the div height irrespective of pharagraphs. (split by lines). And rest of the content tobe shown when clicking the keys.
    If possible each div can have diff. column widths (using css column counts settings)
    Thanks…

  2. admin's Gravataradmin
    June 15, 2011 at 8:59 am | Permalink

    2 sajjakumar
    Thanks my friend, sorry – was unable to answer before in pagination-related topic, but will, hope today

1 Trackback

  1. designfloat.com on June 10, 2011 at 7:17 pm
  2. Creating an Under Water Themed HTML5 and CSS3 single page Layout » Web Design on June 12, 2011 at 6:40 am

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

CAPTCHA Image
Refresh Image

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Popular Tutorials

  • How to create easy pagination with jQuery
  • Animated jQuery Progressbar Plugin
  • Pure HTML5 file upload
  • How to Create Animated Photo Gallery using jQuery (Slider Kit)
  • CSS3 Image Hover Effects
  • Creating a HTML5 & CSS3 Single Page Web Layout
  • How to Easily Make a PHP Chat Application
  • Autocomplete with PHP, jQuery, MySQL and XML

Tags

3d AJAX android animated animation app application applications apps canvas captcha chat system coding creating css css3 developers dropdown effect flash fresh gallery how-to html html5 image images iphone javascript jQuery layout menu navigation new photo PHP plugin plugins slideshow system tutorial tutorials webgl website xslt

Recent Tutorials

  • HTML5 Video player jQuery plugin
  • Pure CSS3 Accordion
  • HTML5 charts and graphs
  • Infographic: CSS3 Properties
  • 10 HTML5 canvas examples for Valentine’s Day
  • Powerful Chat System – Lesson 4
  • CSS3 multicolor menu
  • New HTML5&CSS3 single page layout – Fashion

Friends

  • X-Musics

Tutorials for Web Developers Copyright © 2009-2011 Script tutorials · All rights reserved