<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Script Tutorials &#187; css | Script Tutorials | Web development</title> <atom:link href="http://www.script-tutorials.com/tag/css/feed/" rel="self" type="application/rss+xml" /><link>http://www.script-tutorials.com</link> <description>Tutorials for Web Developers</description> <lastBuildDate>Fri, 03 Feb 2012 06:07:51 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>How to Generate Runtime Multi-columns with CSS3</title><link>http://www.script-tutorials.com/how-to-do-multi-columns-with-css3/</link> <comments>http://www.script-tutorials.com/how-to-do-multi-columns-with-css3/#comments</comments> <pubDate>Mon, 17 Oct 2011 17:11:57 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[columns]]></category> <category><![CDATA[css]]></category> <category><![CDATA[generate]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[multi columns]]></category> <category><![CDATA[runtime]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=1115</guid> <description><![CDATA[How to do Multi-columns with CSS3 Have you ever had the need to create multi-column layout to display any information? What looks like the columns of newspapers. I think that your answer is &#8211; yes. And many of you may have implemented it using just ordinary DIV (or other) elements, with the property float: left. [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/click-action-multilevel-css3-dropdown-menu/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/133/thumb.png" alt="Click action Multi-level CSS3 Dropdown Menu" /> Click action Multi-level CSS3 Dropdown Menu</a></li><li> <a
href="http://www.script-tutorials.com/how-to-translate-your-site-in-runtime-using-jquery/" rel="bookmark"> <img
src="/ssimages/no_image.gif" alt="How to Translate your Site in Runtime using jQuery" /> How to Translate your Site in Runtime using jQuery</a></li><li> <a
href="http://www.script-tutorials.com/image-crop-plugin-using-jcrop-jquery/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/13/files/image.jpg" alt="Cropping images in runtime using Jcrop (jQuery)" /> Cropping images in runtime using Jcrop (jQuery)</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Multi-columns with CSS3" alt="Multi-columns with CSS3" src="http://www.script-tutorials.com/demos/164/thumb.png"></div><p><strong>How to do Multi-columns with CSS3</strong><br
/> <br
/>Have you ever had the need to create <strong>multi-column</strong> layout to display any information? What looks like the columns of newspapers. I think that your answer is &#8211; yes. And many of you may have implemented it using just ordinary DIV (or other) elements, with the property float: left. More recently &#8211; CSS3 gives us his alternative. You do not need to be cut into blocks of text output &#8211; multi-column layout is quite possible to do using a single element.<br
/> <span
id="more-1115"></span></p><p>In our example we will use the new CSS3 properties: <strong>column-count</strong>, <strong>column-gap</strong> and column-rule. It is possible that not all browsers support these CSS3 styles, but I think &#8211; most newer browsers already support them. Here we see that the result should look like:</p><p><img
title="Multi-columns result" alt="Multi-columns result" src="http://www.script-tutorials.com/demos/164/result.png" /></p><h5 style="text-align: center;"><strong><a
title="Multi-columns with CSS3 - demo 164" href="http://www.script-tutorials.com/demos/164/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Multi-columns with CSS3 - package" href="http://www.script-tutorials.com/demos/164/source.zip" target="_blank">download result</a></strong></h5><hr
/><p>Ok, download the example files and lets start coding !</p><hr
/><h3>Step 1. HTML</h3><p>Here are full html code of our result page. Pay attention &#8211; that I have only single DIV element with text.</p><h4>index.html</h4><pre class="brush:html">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot; &gt;
    &lt;head&gt;
        &lt;meta charset=&quot;utf-8&quot; /&gt;
        &lt;title&gt;Multi-columns with CSS3 | Script Tutorials&lt;/title&gt;
        &lt;link href=&quot;css/main.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.5.2.min.js&quot;&gt;&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;js/script.js&quot;&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div class=&quot;controls&quot;&gt;
            &lt;input type=&quot;button&quot; id=&quot;more_cols&quot; value=&quot;More columns&quot; /&gt;
            &lt;input type=&quot;button&quot; id=&quot;less_cols&quot; value=&quot;Less columns&quot; /&gt;
            &lt;input type=&quot;button&quot; id=&quot;more_gap&quot; value=&quot;More gap&quot; /&gt;
            &lt;input type=&quot;button&quot; id=&quot;less_gap&quot; value=&quot;Less gap&quot; /&gt;
        &lt;/div&gt;

        &lt;div class=&quot;container&quot; id=&quot;container&quot;&gt;
            &lt;p&gt;The King sat naked. Like a foolish pauper on the street, he sat leaning
            against  a  cold  wall, drawing in his blue, goose-bumped legs. He shivered,
            with his eyes closed, he listened, but everything was quiet.&lt;/p&gt;
            &lt;p&gt;He awoke at midnight from a nightmare and immediatelly understood  that
            he  was  finished.  Some  one  weezed and writhed by the door of the bedroom
            suite, he heard footsteps, metalic jingling and  drunken  mummbling  of  His
            Highness,  Uncle  Buht: &quot;Let me through... Let me.. Break it down, hell with
            it...&quot; Wet with icy sweat, he slintly rolled off  his  bed,  ducked  into  a
            secter  closet,  and  loosing  himself  he ran down the underground passage.
            Something sqelched under his bare feet, the startled rats dashed  away,  but
            he  did  not notice anything, just now, sitting next to a wall he remembered
            everything; the darkness, the slippery walls, and the pain from  a  blow  on
            the  head against the shakled door to the temple, and his own unberable high
            yelp.&lt;/p&gt;

            &lt;p&gt;They shall not enter here, he thought. No one shall enter here. Only if
            the King  order's  so.  But  the  King  shall  not  order...  He   snickered
            hysterically. Oh no, the King will not order! He carefully un screwed up his
            eyes  and  saw  his  blue, hairless legs with scraped knees. Still alive, he
            thought. I will live, because they shall not enter here.&lt;/p&gt;
            &lt;p&gt;Everything in the temple  was  blueish  from  the  cold  light  of  the
            lanterns -- long glowing tubes that were stretched under the ceiling. In the
            center,  God stood on an eminence, big, heavy, with sparkling dead eyes. The
            King continuously and stupidly stared, until God was suddenly screened by  a
            shabby  lay  brother,  still  a  greenhorn. Scraching, with an open mouth he
            gazed at the naked King. The King squinted once again. Scum, he  thought,  a
            lousy  vermine,  catch the mongrel and to the dogs, for them to ravage... He
            reasoned that he did not remember the lout well, but he was  long  gone.  So
            scrawny,   snotty...   That's  all  right,  we'll  remember.  We'll  remeber
            everything, Your Highness, Uncle Buht. During the father's  reighn,  I  dare
            say you sat quietly, drank a bit and kept silent, were afraid to be noticed,
            you knew that King Prostyaga did not forget you ignoble treachery...&lt;/p&gt;
        &lt;/div&gt;

        &lt;footer&gt;
            &lt;h2&gt;Multi-columns with CSS3&lt;/h2&gt;
            &lt;a href=&quot;http://www.script-tutorials.com/how-to-do-multi-columns-with-css3/&quot; class=&quot;stuts&quot;&gt;Back to original tutorial on &lt;span&gt;Script Tutorials&lt;/span&gt;&lt;/a&gt;
        &lt;/footer&gt;
    &lt;/body&gt;
&lt;/html&gt;
</pre><h3>Step 2. CSS</h3><p>Now &#8211; all CSS styles</p><h4>css/main.css</h4><pre class="brush:css">
*{
    margin:0;
    padding:0;
}

body {
    background-color:#bababa;
    color:#fff;
    font:14px/1.3 Arial,sans-serif;
}

footer {
    background-color:#212121;
    bottom:0;
    box-shadow: 0 -1px 2px #111111;
    display:block;
    height:70px;
    left:0;
    position:fixed;
    width:100%;
    z-index:100;
}

footer h2{
    font-size:22px;
    font-weight:normal;
    left:50%;
    margin-left:-400px;
    padding:22px 0;
    position:absolute;
    width:540px;
}

footer a.stuts,a.stuts:visited{
    border:none;
    text-decoration:none;
    color:#fcfcfc;
    font-size:14px;
    left:50%;
    line-height:31px;
    margin:23px 0 0 110px;
    position:absolute;
    top:0;
}

footer .stuts span {
    font-size:22px;
    font-weight:bold;
    margin-left:5px;
}

/*new styles*/
.container {
    background:#C5DFF0;
    color:#000;
    margin:20px auto;
    padding:20px;
    position:relative;
    width:800px;

    border-radius:5px;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;

    box-shadow:1px 1px 5px #111111;

    column-count: 3;
    column-gap: 3em;
    column-rule: 1px dashed black;
    -moz-column-count: 3;
    -moz-column-gap: 3em;
    -moz-column-rule: 1px dashed black;
    -webkit-column-count: 3;
    -webkit-column-gap: 3em;
    -webkit-column-rule: 1px dashed black;
}
.controls {
    background:#C5DFF0;
    margin:20px auto;
    padding:20px;
    position:relative;
    width:800px;

    box-shadow:1px 1px 5px #111111;
    border-radius:5px;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
}
.controls input[type=button] {
    border: 1px solid #000;
    background-color: #666;
    box-shadow: 0 1px 0 rgba(150, 150, 150, 0.5);
    color: #FFF;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    padding: 8px 12px;
}
.controls input[type=button]:hover {
    background-color:#444;
}
.controls input[type=button]:active {
    background-color:#000;
}
</pre><p>Most imporant styles is styles of &#8216;.container&#8217; selector. See how I&#8217;m using our new styles.</p><h3>Step 3. JavaScript</h3><p>I added some JS functionality, so you can play with the styles (<strong>column-count</strong> and <strong>column-gap</strong>) in real time.</p><h4>js/script.js</h4><pre class="brush:js">
$(function(){
    var iColumns = 3;
    var iGap = 3;
    var cont = document.getElementById('container'); 

    $('#less_cols').click(function(e) { // mouse click handler
        iColumns--; // decreasing amount of columns
        if (iColumns &lt; 1) iColumns = 1;
        cont.style.MozColumnCount = iColumns; // apply styles
        cont.style.WebkitColumnCount = iColumns;
    });
    $('#more_cols').click(function(e) {
        iColumns++; // increasing amount of columns
        if (iColumns &gt; 5) iColumns = 5;
        cont.style.MozColumnCount = iColumns; // apply styles
        cont.style.WebkitColumnCount = iColumns;
    });
    $('#less_gap').click(function(e) {
        iGap--; // decreasing value of gap
        if (iGap &lt; 0) iGap = 0;
        cont.style.MozColumnGap = iGap+'em'; // apply styles
        cont.style.WebkitColumnGap = iGap+'em';
    });
    $('#more_gap').click(function(e) {
        iGap++; // increasing value of gap
        if (iGap &gt; 5) iGap = 5;
        cont.style.MozColumnGap = iGap+'em'; // apply styles
        cont.style.WebkitColumnGap = iGap+'em';
    });
});
</pre><hr
/><h5 style="text-align: center;"><strong><a
title="Multi-columns with CSS3 - demo 164" href="http://www.script-tutorials.com/demos/164/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Multi-columns with CSS3 - package" href="http://www.script-tutorials.com/demos/164/source.zip" target="_blank" rel="nofollow">download result</a></strong></h5><hr
/><h3>Conclusion</h3><p>I hope that our nice tips help you. Good luck!</p><div
class="shr-publisher-1115"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/click-action-multilevel-css3-dropdown-menu/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/133/thumb.png" alt="Click action Multi-level CSS3 Dropdown Menu" /> <br
/> Click action Multi-level CSS3 Dropdown Menu</a></li><li> <a
href="http://www.script-tutorials.com/how-to-translate-your-site-in-runtime-using-jquery/" rel="bookmark"> <img
src="/ssimages/no_image.gif" alt="How to Translate your Site in Runtime using jQuery" /> <br
/> How to Translate your Site in Runtime using jQuery</a></li><li> <a
href="http://www.script-tutorials.com/image-crop-plugin-using-jcrop-jquery/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/13/files/image.jpg" alt="Cropping images in runtime using Jcrop (jQuery)" /> <br
/> Cropping images in runtime using Jcrop (jQuery)</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/how-to-do-multi-columns-with-css3/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to Create Your Own 5 Stars Voting System</title><link>http://www.script-tutorials.com/how-to-create-own-voting-system/</link> <comments>http://www.script-tutorials.com/how-to-create-own-voting-system/#comments</comments> <pubDate>Tue, 04 Oct 2011 17:20:52 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[creating]]></category> <category><![CDATA[css]]></category> <category><![CDATA[five stars]]></category> <category><![CDATA[html]]></category> <category><![CDATA[system]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[voting]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=1072</guid> <description><![CDATA[How to create own voting system Today I prepared very interesting article &#8211; today I will tell you how you can create own voting system for your items (any units at your website) with PHP. I prepared two SQL tables: first table will keep our demo items. It contain several fields: title, description, time of [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/how-to-create-own-commenting-system/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/163/thumb.png" alt="Creating Your Own Commenting System from Scratch" /> Creating Your Own Commenting System from Scratch</a></li><li> <a
href="http://www.script-tutorials.com/creating-own-ajax-poll-system/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/183/thumb.png" alt="Creating Your Own Ajax Poll System" /> Creating Your Own Ajax Poll System</a></li><li> <a
href="http://www.script-tutorials.com/how-to-create-photo-album-with-tn3/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/146/thumb.png" alt="How to Create a Fantastic Photo Album with TN3" /> How to Create a Fantastic Photo Album with TN3</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="How to create own voting system" alt="How to create own voting system" src="http://www.script-tutorials.com/demos/155/thumb.png"></div><p><strong>How to create own voting system</strong><br
/> <br
/>Today I prepared very interesting article &#8211; today I will tell you how you can create own voting system for your items (any units at your website) with PHP. I prepared two SQL tables: first table will keep our demo items. It contain several fields: title, description, time of adding, rate value and count of rates. Another table will keep records of voting (track). Of course &#8211; we will use jQuery too (for better behavior of interface). One of features will restriction to vote twice from one IP during 1 week!<br
/> <span
id="more-1072"></span></p><h5 style="text-align: center;"><strong><a
title="How to create own voting system - demo 155" href="http://www.script-tutorials.com/demos/155/index.php" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="How to create own voting system - package" href="http://www.script-tutorials.com/demos/155/source.zip" target="_blank">download in package</a></strong></h5><hr
/><p>Now &#8211; download the source files and lets start coding !</p><hr
/><h3>Step 1. SQL</h3><p>We will need to add 2 tables into our database:</p><pre class="brush:php">
CREATE TABLE IF NOT EXISTS `s155_items` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `title` varchar(255) default '',
  `description` text NOT NULL,
  `when` int(11) NOT NULL default '0',
  `rate` float NOT NULL,
  `rate_count` int(11) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `s155_items` (`title`, `description`, `when`, `rate`, `rate_count`) VALUES
('Item #1', 'Here are you can put description of Item #1', UNIX_TIMESTAMP(), '0', '0'),
('Item #2', 'Here are you can put description of Item #2', UNIX_TIMESTAMP()+1, '0', '0'),
('Item #3', 'Here are you can put description of Item #3', UNIX_TIMESTAMP()+2, '0', '0'),
('Item #4', 'Here are you can put description of Item #4', UNIX_TIMESTAMP()+3, '0', '0'),
('Item #5', 'Here are you can put description of Item #5', UNIX_TIMESTAMP()+4, '0', '0');

CREATE TABLE `s155_items_vote_track` (
  `item_id` int(11) unsigned NOT NULL default '0',
  `ip` varchar(20) default NULL,
  `date` datetime default NULL,
  KEY `med_ip` (`ip`,`item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
</pre><p>This is simple tables: first for records of items, second one &#8211; voting tracker</p><h3>Step 2. PHP</h3><p>Here are source code of our main file:</p><h4>index.php</h4><pre class="brush:php">
&lt;?php

if (version_compare(phpversion(), &quot;5.3.0&quot;, &quot;&gt;=&quot;)  == 1)
  error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED);
else
  error_reporting(E_ALL &amp; ~E_NOTICE); 

require_once('classes/CMySQL.php'); // including service class to work with database

$sCode = '';
$iItemId = (int)$_GET['id'];
if ($iItemId) { // View item output
    $aItemInfo = $GLOBALS['MySQL']-&gt;getRow(&quot;SELECT * FROM `s155_items` WHERE `id` = '{$iItemId}'&quot;); // getting info about item from database
    $sCode .= '&lt;h1&gt;'.$aItemInfo['title'].'&lt;/h1&gt;';
    $sCode .= '&lt;h3&gt;'.date('F j, Y', $aItemInfo['when']).'&lt;/h3&gt;';
    $sCode .= '&lt;h2&gt;Description:&lt;/h2&gt;';
    $sCode .= '&lt;h3&gt;'.$aItemInfo['description'].'&lt;/h3&gt;';

    // draw voting element
    $iIconSize = 64;
    $iMax = 5;
    $iRate = $aItemInfo['rate'];
    $iRateCnt = $aItemInfo['rate_count'];
    $fRateAvg = ($iRate &amp;&amp; $iRateCnt) ? $iRate / $iRateCnt : 0;
    $iWidth = $iIconSize*$iMax;
    $iActiveWidth = round($fRateAvg*($iMax ? $iWidth/$iMax : 0));

    $sVot = '';
    for ($i=1 ; $i&lt;=$iMax ; $i++) {
        $sVot .= '&lt;a href=&quot;#&quot; id=&quot;'.$i.'&quot;&gt;&lt;img class=&quot;votes_button&quot; src=&quot;images/empty.gif&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;';
    }

    $sVoting = &lt;&lt;&lt;EOS
&lt;div class=&quot;votes_main&quot;&gt;
    &lt;div class=&quot;votes_gray&quot; style=&quot;width:{$iWidth}px;&quot;&gt;
        &lt;div class=&quot;votes_buttons&quot; id=&quot;{$iItemId}&quot; cnt=&quot;{$iRateCnt}&quot; val=&quot;{$fRateAvg}&quot;&gt;
            {$sVot}
        &lt;/div&gt;
        &lt;div class=&quot;votes_active&quot; style=&quot;width:{$iActiveWidth}px;&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;span&gt;&lt;b&gt;{$iRateCnt}&lt;/b&gt; votes&lt;/span&gt;
&lt;/div&gt;
EOS;

    $sCode .= $sVoting;
    $sCode .= '&lt;h3&gt;&lt;a href=&quot;'.$_SERVER['PHP_SELF'].'&quot;&gt;back&lt;/a&gt;&lt;/h3&gt;';
} else {
    $sCode .= '&lt;h1&gt;List of items:&lt;/h1&gt;';

    $aItems = $GLOBALS['MySQL']-&gt;getAll(&quot;SELECT * FROM `s155_items` ORDER by `when` ASC&quot;); // taking info about all items from database
    foreach ($aItems as $i =&gt; $aItemInfo) {
        $sCode .= '&lt;h2&gt;&lt;a href=&quot;'.$_SERVER['PHP_SELF'].'?id='.$aItemInfo['id'].'&quot;&gt;'.$aItemInfo['title'].' item&lt;/a&gt;&lt;/h2&gt;';
    }
}

?&gt;
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot; &gt;
    &lt;head&gt;
        &lt;meta charset=&quot;utf-8&quot; /&gt;
        &lt;title&gt;Creating own rate system | Script Tutorials&lt;/title&gt;

        &lt;link href=&quot;css/main.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.5.2.min.js&quot;&gt;&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;js/script.js&quot;&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div class=&quot;container&quot;&gt;
            &lt;?= $sCode ?&gt;
        &lt;/div&gt;
        &lt;footer&gt;
            &lt;h2&gt;Creating own rate system&lt;/h2&gt;
            &lt;a href=&quot;http://www.script-tutorials.com/how-to-create-own-voting-system/&quot; class=&quot;stuts&quot;&gt;Back to original tutorial on &lt;span&gt;Script Tutorials&lt;/span&gt;&lt;/a&gt;
        &lt;/footer&gt;
    &lt;/body&gt;
&lt;/html&gt;
</pre><p>This script will draw us list of items by default. And, when we will clicking to any item &#8211; this will link like: index.php?id=1 &#8211; it will drawing item page. I decided not make something difficult &#8211; I prepared just simple page. We will display item title, time of adding (&#8216;when&#8217; field), description, and, most important &#8211; our Voting element. This will looks like stars (5 stars). And we can select &#8211; how many stars we will give for our vote (from 1 till 5). I added my comments in most of places for better understanding. Ok, next PHP file is:</p><h4>vote.php</h4><pre class="brush:php">
&lt;?php

if (version_compare(phpversion(), &quot;5.3.0&quot;, &quot;&gt;=&quot;)  == 1)
  error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED);
else
  error_reporting(E_ALL &amp; ~E_NOTICE); 

require_once('classes/CMySQL.php');

$iItemId = (int)$_POST['id'];
$iVote = (int)$_POST['vote'];
$sIp = getVisitorIP();

$iOldId = $GLOBALS['MySQL']-&gt;getOne(&quot;SELECT `item_id` FROM `s155_items_vote_track` WHERE `item_id` = '{$iItemId}' AND `ip` = '{$sIp}' AND (`date` &gt;= NOW() - INTERVAL 7 DAY) LIMIT 1&quot;);
if (! $iOldId) {
    $GLOBALS['MySQL']-&gt;res(&quot;INSERT INTO `s155_items_vote_track` SET `item_id` = '{$iItemId}', `ip` = '{$sIp}', `date` = NOW()&quot;);
    $GLOBALS['MySQL']-&gt;res(&quot;UPDATE `s155_items` SET `rate` = `rate` + {$iVote}, `rate_count` = `rate_count` + 1 WHERE `id` = '{$iItemId}'&quot;);
    echo 1;
}

function getVisitorIP() {
    $ip = &quot;0.0.0.0&quot;;
    if( ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) &amp;&amp; ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) ) {
        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
    } elseif( ( isset( $_SERVER['HTTP_CLIENT_IP'])) &amp;&amp; (!empty($_SERVER['HTTP_CLIENT_IP'] ) ) ) {
        $ip = explode(&quot;.&quot;,$_SERVER['HTTP_CLIENT_IP']);
        $ip = $ip[3].&quot;.&quot;.$ip[2].&quot;.&quot;.$ip[1].&quot;.&quot;.$ip[0];
    } elseif((!isset( $_SERVER['HTTP_X_FORWARDED_FOR'])) || (empty($_SERVER['HTTP_X_FORWARDED_FOR']))) {
        if ((!isset( $_SERVER['HTTP_CLIENT_IP'])) &amp;&amp; (empty($_SERVER['HTTP_CLIENT_IP']))) {
            $ip = $_SERVER['REMOTE_ADDR'];
        }
    }
    return $ip;
}

?&gt;
</pre><p>This file we will using to accept visitors votes and saving its into database. In our project we have another one PHP file:</p><h4>classes/CMySQL.php</h4><p>This is service class to work with database prepared by me. This is nice class which you can use too. Database connection details located in this class in few variables, sure that you will able to configure this to your database. I don`t will publish its sources &#8211; this is not necessary for now. Available in package.</p><h3>Step 3. JS</h3><p>Here are small javascript code which we will using for changing voting element styles on mouse hover. And &#8211; for sending data in case of submitting our vote.</p><h4>js/script.js</h4><pre class="brush:javascript">
$(function(){
    var width = 0;

    $('.votes_buttons a').hover(
        function () {
            width = $(this).attr('id') * 64;
            $('.votes_active').width(width + 'px');
        },
        function () {
            width = $(this).parent().attr('val') * 64;
            $('.votes_active').width(width + 'px');
        }
    );

    $('.votes_buttons a').click(function () {
        var idVal = $(this).parent().attr('id');
        var iCnt = $(this).parent().attr('cnt');
        var voteVal = $(this).attr('id');
        var obj = $(this);
        var iSelWidth = voteVal * 64;

        $.post('vote.php', { id: idVal, vote: voteVal },
            function(data){
                if (data == 1) {
                    width = iSelWidth;
                    $('.votes_active').width(iSelWidth + 'px');
                    iCnt = parseInt(iCnt) + 1;
                    $('.votes_main span b').text(iCnt);
                    $('.votes_buttons').attr('val', voteVal);
                }
            }
        );
    });
});
</pre><h4>js/jquery-1.5.2.min.js</h4><p>This is just jQuery library. Available in package.</p><h3>Step 4. CSS</h3><p>Now &#8211; all used CSS styles:</p><h4>css/main.css</h4><pre class="brush:js">
/* general styles */
*{
    margin:0;
    padding:0;
}

body {
    background-repeat:no-repeat;
    background-color:#bababa;
    background-image: -webkit-radial-gradient(600px 200px, circle, #eee, #bababa 40%);
    background-image: -moz-radial-gradient(600px 200px, circle, #eee, #bababa 40%);
    background-image: -o-radial-gradient(600px 200px, circle, #eee, #bababa 40%);
    background-image: radial-gradient(600px 200px, circle, #eee, #bababa 40%);
    color:#fff;
    font:14px/1.3 Arial,sans-serif;
    min-height:600px;
}

footer {
    background-color:#212121;
    bottom:0;
    box-shadow: 0 -1px 2px #111111;
    display:block;
    height:70px;
    left:0;
    position:fixed;
    width:100%;
    z-index:100;
}

footer h2{
    font-size:22px;
    font-weight:normal;
    left:50%;
    margin-left:-400px;
    padding:22px 0;
    position:absolute;
    width:540px;
}

footer a.stuts,a.stuts:visited{
    border:none;
    text-decoration:none;
    color:#fcfcfc;
    font-size:14px;
    left:50%;
    line-height:31px;
    margin:23px 0 0 110px;
    position:absolute;
    top:0;
}

footer .stuts span {
    font-size:22px;
    font-weight:bold;
    margin-left:5px;
}

.container {
    border:3px #111 solid;
    color:#000;
    margin:20px auto;
    padding:15px;
    position:relative;
    text-align:center;
    width:500px;

    border-radius:15px;
    -moz-border-radius:15px;
    -webkit-border-radius:15px;
}

.votes_main {
    margin: 10px auto;
    overflow: hidden;
    width: 450px;
}
.votes_gray {
    background-image: url(&quot;../images/star_gray.png&quot;);
    float: left;
    height: 64px;
    position: relative;
}
.votes_active {
    background-image: url(&quot;../images/star.png&quot;);
    height: 64px;
    left: 0;
    position: absolute;
    top: 0;
    z-index: 1;
}
.votes_buttons {
    left: 0;
    position: absolute;
    top: 0;
    z-index: 2;
}
.votes_button {
    border: medium none;
    height: 64px;
    margin: 0;
    padding: 0;
    width: 64px;
}
.votes_main span {
    color: #333333;
    display: block;
    float: left;
    font-weight: bold;
    font-size: 18px;
    line-height: 64px;
    margin-left: 10px;
}
</pre><h3>Step 5. Images</h3><p>Last step &#8211; used images:</p><pre class="sources">
<img alt="star.png" src="http://www.script-tutorials.com/demos/155/images/star.png" />
<img alt="star_gray.png" src="http://www.script-tutorials.com/demos/155/images/star_gray.png" />
</pre><hr
/><h5 style="text-align: center;"><strong><a
title="How to create own voting system - demo 155" href="http://www.script-tutorials.com/demos/155/index.php" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="How to create own voting system - package" href="http://www.script-tutorials.com/demos/155/source.zip" target="_blank" rel="nofollow">download in archive</a></strong></h5><hr
/><h3>Conclusion</h3><p>Today we prepared great voting system for your website. Sure that this material will useful for your own projects. Good luck in your work!</p><div
class="shr-publisher-1072"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/how-to-create-own-commenting-system/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/163/thumb.png" alt="Creating Your Own Commenting System from Scratch" /> <br
/> Creating Your Own Commenting System from Scratch</a></li><li> <a
href="http://www.script-tutorials.com/creating-own-ajax-poll-system/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/183/thumb.png" alt="Creating Your Own Ajax Poll System" /> <br
/> Creating Your Own Ajax Poll System</a></li><li> <a
href="http://www.script-tutorials.com/how-to-create-photo-album-with-tn3/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/146/thumb.png" alt="How to Create a Fantastic Photo Album with TN3" /> <br
/> How to Create a Fantastic Photo Album with TN3</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/how-to-create-own-voting-system/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Creating a Robo Splash Page Layout</title><link>http://www.script-tutorials.com/creating-a-robo-splash-page-layout/</link> <comments>http://www.script-tutorials.com/creating-a-robo-splash-page-layout/#comments</comments> <pubDate>Mon, 03 Oct 2011 15:21:19 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[coding]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[page]]></category> <category><![CDATA[splash]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=1066</guid> <description><![CDATA[Robo splash page layout Today I present you a new layout &#8211; Robo splash page. This is will modern looking HTML5 / CSS3 splash page layout which you will able to get for your website. So, let&#8217;s go inside and read up &#8211; how to make similar page. Here are how our final result will [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-mono/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/142/thumb.png" alt="Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout" /> Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-rock-portal/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/191/thumb.png" alt="Creating new HTML5&amp;CSS3 single page layout &#8211; Rock portal" /> Creating new HTML5&amp;CSS3 single page layout &#8211; Rock portal</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Robo splash page layout" alt="Robo splash page layout" src="http://www.script-tutorials.com/demos/154/thumb.png"></div><p><strong>Robo splash page layout</strong><br
/> <br
/>Today I present you a new layout &#8211; Robo splash page. This is will modern looking HTML5 / CSS3 splash <strong>page layout</strong> which you will able to get for your website. So, let&#8217;s go inside and read up &#8211; how to make similar page.<br
/> <span
id="more-1066"></span></p><h3>Here are how our final result will looks:</h3><p><img
title="final template result" alt="final template result" src="http://www.script-tutorials.com/demos/154/step1.jpg" /></p><h5 style="text-align: center;"><strong><a
title="Robo splash page layout - demo 154" href="http://www.script-tutorials.com/demos/154/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Robo splash page layout - package" href="http://www.script-tutorials.com/demos/154/source.zip" target="_blank">download result</a></strong></h5><hr
/><h3>Get started</h3><p>Ok, let`s start. Lets create new folder and few folders inside (to keep all well structured):</p><ul><li>css &#8211; which will contain our CSS stylesheets (style.css)</li><li>images &#8211; which will contain all used images</li><li>js &#8211; will contain JS files (html5.js for today)</li></ul><h3>Head section code</h3><p>Now I am going to give you the usual HTML head area of index.html with the attached CSS/JS.</p><pre class="brush:html">
&lt;!DOCTYPE html&gt;&lt;!-- The new doctype --&gt;
&lt;html lang=&quot;en&quot;&gt;&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
    &lt;title&gt;Robo splash page layout | Script tutorials&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;

    &lt;!-- Linking styles --&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;

    &lt;!--[if lt IE 9]&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/html5.js&quot;&gt;&lt;/script&gt;
    &lt;![endif]--&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function hide_by_id(id) {
    if (document.getElementById) {
        document.getElementById(id).style.display = 'none';
    }
    else {
        if (document.layers) {
            document.id.display = 'none';
        } else {
            document.all.id.style.display = 'none';
        }
    }
}

function show_by_id(id) {
    if (document.getElementById) {
        document.getElementById(id).style.display = 'block';
    }
    else {
        if (document.layers) {
            document.id.display = 'block';
        } else {
            document.all.id.style.display = 'block';
        }
    }
}
&lt;/script&gt;
&lt;/head&gt;
</pre><h3>Moving forward &#8211; Body</h3><p>Whole layout consist of 3 main section: header (with logo and login form), main section (promo, info area and join form) and footer (commonly &#8211; here are just different links). Whole layout looks like:</p><pre class="brush:html">
&lt;body&gt;

&lt;header&gt;&lt;!-- Defining the header section of the page --&gt;
    &lt;div class=&quot;header_bar&quot;&gt;
        &lt;a href=&quot;http://www.script-tutorials.com/&quot; class=&quot;logo&quot;&gt;&lt;!-- logo --&gt;
            &lt;img src=&quot;images/logo.png&quot; title=&quot;My logo&quot; alt=&quot;My logo&quot; /&gt;
        &lt;/a&gt;

        &lt;section id=&quot;login&quot;&gt;&lt;!-- login form --&gt;
            &lt;form action=&quot;#&quot; method=&quot;POST&quot;&gt;
                ......
            &lt;/form&gt;
        &lt;/section&gt;
    &lt;/div&gt;
&lt;/header&gt;

&lt;section id=&quot;main&quot;&gt;&lt;!-- Defining the main content section --&gt;
    &lt;div id=&quot;content&quot;&gt;
        &lt;div id=&quot;promo&quot;&gt;&lt;!-- promo --&gt;
            &lt;div class=&quot;title&quot;&gt;Welcome to our website.&lt;/div&gt;
            &lt;div class=&quot;img&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id=&quot;info&quot;&gt;&lt;!-- info block --&gt;
            ......
        &lt;/div&gt;
        &lt;div id=&quot;join&quot; style=&quot;display:none&quot;&gt;&lt;!-- join form --&gt;
            ......
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
    &lt;div id=&quot;links&quot;&gt;&lt;!-- extra links --&gt;
        &lt;div class=&quot;copy&quot;&gt;
            &lt;div&gt;&lt;span&gt; &lt;a href=&quot;http://www.script-tutorials.com/creating-a-robo-splash-page-layout&quot;&gt;Script-tutorials &amp;copy; 2011&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;nav&quot;&gt;
            &lt;a title=&quot;Find Friends&quot; href=&quot;#&quot;&gt;Find Friends&lt;/a&gt; |
            ......
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/footer&gt;

&lt;/body&gt;
</pre><h3>here are you can see base CSS styles</h3><pre class="brush:css">
/* base styles */
body {
    background-color: #f0edeb;
    color: #333;
    font-family: Verdana,Arial,sans-serif;
    font-size: 11px;
    margin: 0;
    padding: 0;
    text-align: left;
}
a {
    color: #000;
    cursor: pointer;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
label {
    color: #222;
    cursor: pointer;
    font-weight: bold;
    vertical-align: middle;
}
textarea, input[type=text], input[type=password] {
    border: 1px solid #BDC7D8;
    font-family: Verdana,Arial,sans-serif;
    font-size: 11px;
    padding: 3px;
}
select {
    border: 1px solid #BDC7D8;
    font-family: Verdana,Arial,sans-serif;
    font-size: 11px;
    padding: 2px;
}
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
</pre><h3>1. Header section with logo and login form</h3><p><img
title="header area" alt="header area" src="http://www.script-tutorials.com/demos/154/step2.jpg" /></p><p>Our header will logo at left and login form at right side. Here are HTML for that section:</p><pre class="brush:html">
&lt;header&gt;&lt;!-- Defining the header section of the page --&gt;
    &lt;div class=&quot;header_bar&quot;&gt;
        &lt;a href=&quot;http://www.script-tutorials.com/&quot; class=&quot;logo&quot;&gt;&lt;!-- logo --&gt;
            &lt;img src=&quot;images/logo.png&quot; title=&quot;My logo&quot; alt=&quot;My logo&quot; /&gt;
        &lt;/a&gt;

        &lt;section id=&quot;login&quot;&gt;&lt;!-- login form --&gt;
            &lt;form action=&quot;#&quot; method=&quot;POST&quot;&gt;
                &lt;table cellspacing=&quot;0&quot;&gt;
                    &lt;tr&gt;
                        &lt;td class=&quot;t&quot;&gt;
                            &lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt;
                        &lt;/td&gt;
                        &lt;td class=&quot;t&quot;&gt;
                            &lt;label for=&quot;pass&quot;&gt;Password&lt;/label&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td&gt;
                            &lt;input type=&quot;text&quot; tabindex=&quot;1&quot; value=&quot;&quot; id=&quot;email&quot; name=&quot;email&quot;&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;input type=&quot;password&quot; tabindex=&quot;2&quot; id=&quot;pass&quot; name=&quot;pass&quot;&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;label for=&quot;login_btn&quot; class=&quot;login_btn&quot;&gt;
                                &lt;input type=&quot;submit&quot; id=&quot;login_btn&quot; tabindex=&quot;4&quot; value=&quot;Log In&quot;&gt;
                            &lt;/label&gt;
                            &lt;label for=&quot;join_btn&quot; class=&quot;join_btn&quot;&gt;
                                &lt;input type=&quot;button&quot; id=&quot;join_btn&quot; tabindex=&quot;4&quot; value=&quot;Or Join&quot; onclick=&quot;hide_by_id('info');show_by_id('join');&quot;&gt;
                            &lt;/label&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td class=&quot;b&quot;&gt;
                            &lt;div&gt;
                                &lt;input type=&quot;checkbox&quot; tabindex=&quot;3&quot; value=&quot;1&quot; name=&quot;keep_logged&quot; id=&quot;keep_logged&quot;&gt;
                                &lt;label for=&quot;keep_logged&quot;&gt;Keep me logged in&lt;/label&gt;
                            &lt;/div&gt;
                        &lt;/td&gt;
                        &lt;td class=&quot;b&quot;&gt;
                            &lt;a rel=&quot;nofollow&quot; href=&quot;#&quot;&gt;Forgot your password?&lt;/a&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/table&gt;
            &lt;/form&gt;
        &lt;/section&gt;
    &lt;/div&gt;
&lt;/header&gt;
</pre><h3>CSS for header section</h3><pre class="brush:css">
/* header section */
header {
    background-color: #ddd;
    height: 90px;
    min-width: 980px;
    width: 100%;
    z-index: 300;
}
header .header_bar {
    margin: 0 auto;
    overflow: hidden;
    padding-top: 13px;
    width: 964px;
}
header .logo {
    float: left
}
header .logo img {
    border-width:0;
}
header #login {
    float: right
}
header #login table tr {
    vertical-align: top;
}
header #login table tr td {
    padding: 0 0 0 14px;
}
header #login .t {
    padding-bottom: 4px;
}
header #login .t label {
    color: #000;
    font-weight: bold;
    padding-left: 1px;
}
header #login input[type=text], header #login input[type=password] {
    border-color: #1D2A5B;
    margin: 0;
    padding-bottom: 4px;
    width: 142px;
}
header #login .login_btn input, header #login .join_btn input {
    border: 1px solid #000;
    background-color: #666;
    box-shadow: 0 1px 0 rgba(150, 150, 150, 0.5);
    padding: 2px 3px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    color: #FFF;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin: 0;
    outline: medium none;
}
header #login .login_btn input:active {
    background: none repeat scroll 0 0 #000;
}
header #login .b {
    padding-top: 4px;
}
header #login .b input[type=checkbox] {
    float: left;
    margin: 0;
    padding: 0;
}
header #login .b label {
    display: block;
    font-weight: normal;
    margin-left: 17px;
    vertical-align: baseline;
}
header #login .b a {
    font-weight: normal;
}
</pre><h3>2. Main content section</h3><p>After our header area &#8211; we have main content area. At left side it contain promo image, and little Info block with description of our website. Plus, when we will click to Join button &#8211; join form will appear at right side instead Info block.</p><p><img
title="Main content area" alt="Main content area" src="http://www.script-tutorials.com/demos/154/step3.jpg" /></p><pre class="brush:html">
&lt;section id=&quot;main&quot;&gt;&lt;!-- Defining the main content section --&gt;
    &lt;div id=&quot;content&quot;&gt;
        &lt;div id=&quot;promo&quot;&gt;&lt;!-- promo --&gt;
            &lt;div class=&quot;title&quot;&gt;Welcome to our website.&lt;/div&gt;
            &lt;div class=&quot;img&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id=&quot;info&quot;&gt;&lt;!-- info block --&gt;
            &lt;div class=&quot;title&quot;&gt;
                Our website is web development blog, which will provide visitors with latest and interesting content and updates regarding making web sites, programming , tutorials etc.
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div id=&quot;join&quot; style=&quot;display:none&quot;&gt;&lt;!-- join form --&gt;
            &lt;div class=&quot;title&quot;&gt;
                &lt;div class=&quot;l1&quot;&gt;Sign Up&lt;/div&gt;
                &lt;div class=&quot;l2&quot;&gt;Today for a free.&lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;cont&quot;&gt;
                &lt;form&gt;
                    &lt;table cellpadding=&quot;1&quot; cellspacing=&quot;0&quot;&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;&lt;label for=&quot;firstname&quot;&gt;First Name:&lt;/label&gt;&lt;/td&gt;
                            &lt;td&gt;&lt;div class=&quot;field_container&quot;&gt;&lt;input class=&quot;inputtext&quot; id=&quot;firstname&quot; name=&quot;firstname&quot; type=&quot;text&quot;&gt;&lt;/div&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;&lt;label for=&quot;lastname&quot;&gt;Last Name:&lt;/label&gt;&lt;/td&gt;
                            &lt;td&gt;&lt;div class=&quot;field_container&quot;&gt;&lt;input class=&quot;inputtext&quot; id=&quot;lastname&quot; name=&quot;lastname&quot; type=&quot;text&quot;&gt;&lt;/div&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;&lt;label for=&quot;reg_email__&quot;&gt;Your Email:&lt;/label&gt;&lt;/td&gt;
                            &lt;td&gt;&lt;div class=&quot;field_container&quot;&gt;&lt;input class=&quot;inputtext&quot; id=&quot;reg_email__&quot; name=&quot;reg_email__&quot; type=&quot;text&quot;&gt;&lt;/div&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;&lt;label for=&quot;reg_email_confirmation__&quot;&gt;Re-enter Email:&lt;/label&gt;&lt;/td&gt;
                            &lt;td&gt;&lt;div class=&quot;field_container&quot;&gt;&lt;input class=&quot;inputtext&quot; id=&quot;reg_email_confirmation__&quot; name=&quot;reg_email_confirmation__&quot; type=&quot;text&quot;&gt;&lt;/div&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;&lt;label for=&quot;reg_passwd__&quot;&gt;New Password:&lt;/label&gt;&lt;/td&gt;
                            &lt;td&gt;&lt;div class=&quot;field_container&quot;&gt;&lt;input class=&quot;inputtext&quot; id=&quot;reg_passwd__&quot; name=&quot;reg_passwd__&quot; value=&quot;&quot; type=&quot;password&quot;&gt;&lt;/div&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;I am:&lt;/td&gt;&lt;td&gt;
                                &lt;div class=&quot;field_container&quot;&gt;
                                    &lt;select class=&quot;select&quot; name=&quot;sex&quot; id=&quot;sex&quot;&gt;
                                        &lt;option value=&quot;0&quot;&gt;Select Sex:&lt;/option&gt;
                                        &lt;option value=&quot;1&quot;&gt;Female&lt;/option&gt;
                                        &lt;option value=&quot;2&quot;&gt;Male&lt;/option&gt;
                                    &lt;/select&gt;
                                &lt;/div&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr&gt;
                            &lt;td class=&quot;label&quot;&gt;Birthday:&lt;/td&gt;
                            &lt;td&gt;
                                &lt;div class=&quot;field_container&quot;&gt;
                                    &lt;select name=&quot;birthday_month&quot; id=&quot;birthday_month&quot;&gt;
                                        &lt;option value=&quot;-1&quot;&gt;Month:&lt;/option&gt;
                                        &lt;option value=&quot;1&quot;&gt;Jan&lt;/option&gt;
                                        &lt;option value=&quot;2&quot;&gt;Feb&lt;/option&gt;
                                        &lt;option value=&quot;3&quot;&gt;Mar&lt;/option&gt;
                                        &lt;option value=&quot;4&quot;&gt;Apr&lt;/option&gt;
                                        &lt;option value=&quot;5&quot;&gt;May&lt;/option&gt;
                                        &lt;option value=&quot;6&quot;&gt;Jun&lt;/option&gt;
                                        &lt;option value=&quot;7&quot;&gt;Jul&lt;/option&gt;
                                        &lt;option value=&quot;8&quot;&gt;Aug&lt;/option&gt;
                                        &lt;option value=&quot;9&quot;&gt;Sep&lt;/option&gt;
                                        &lt;option value=&quot;10&quot;&gt;Oct&lt;/option&gt;
                                        &lt;option value=&quot;11&quot;&gt;Nov&lt;/option&gt;
                                        &lt;option value=&quot;12&quot;&gt;Dec&lt;/option&gt;
                                    &lt;/select&gt;
                                    &lt;select name=&quot;birthday_day&quot; id=&quot;birthday_day&quot;&gt;
                                        &lt;option value=&quot;-1&quot;&gt;Day:&lt;/option&gt;
                                        &lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
                                        &lt;option value=&quot;2&quot;&gt;2&lt;/option&gt;
                                        &lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
                                        &lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
                                        &lt;option value=&quot;5&quot;&gt;5&lt;/option&gt;
                                        &lt;option value=&quot;6&quot;&gt;6&lt;/option&gt;
                                        &lt;option value=&quot;7&quot;&gt;7&lt;/option&gt;
                                        &lt;option value=&quot;8&quot;&gt;8&lt;/option&gt;
                                        &lt;option value=&quot;9&quot;&gt;9&lt;/option&gt;
                                        &lt;option value=&quot;10&quot;&gt;10&lt;/option&gt;
                                        &lt;option value=&quot;11&quot;&gt;11&lt;/option&gt;
                                        &lt;option value=&quot;12&quot;&gt;12&lt;/option&gt;
                                        &lt;option value=&quot;13&quot;&gt;13&lt;/option&gt;
                                        &lt;option value=&quot;14&quot;&gt;14&lt;/option&gt;
                                        &lt;option value=&quot;15&quot;&gt;15&lt;/option&gt;
                                        &lt;option value=&quot;16&quot;&gt;16&lt;/option&gt;
                                        &lt;option value=&quot;17&quot;&gt;17&lt;/option&gt;
                                        &lt;option value=&quot;18&quot;&gt;18&lt;/option&gt;
                                        &lt;option value=&quot;19&quot;&gt;19&lt;/option&gt;
                                        &lt;option value=&quot;20&quot;&gt;20&lt;/option&gt;
                                        &lt;option value=&quot;21&quot;&gt;21&lt;/option&gt;
                                        &lt;option value=&quot;22&quot;&gt;22&lt;/option&gt;
                                        &lt;option value=&quot;23&quot;&gt;23&lt;/option&gt;
                                        &lt;option value=&quot;24&quot;&gt;24&lt;/option&gt;
                                        &lt;option value=&quot;25&quot;&gt;25&lt;/option&gt;
                                        &lt;option value=&quot;26&quot;&gt;26&lt;/option&gt;
                                        &lt;option value=&quot;27&quot;&gt;27&lt;/option&gt;
                                        &lt;option value=&quot;28&quot;&gt;28&lt;/option&gt;
                                        &lt;option value=&quot;29&quot;&gt;29&lt;/option&gt;
                                        &lt;option value=&quot;30&quot;&gt;30&lt;/option&gt;
                                        &lt;option value=&quot;31&quot;&gt;31&lt;/option&gt;
                                    &lt;/select&gt;
                                    &lt;select name=&quot;birthday_year&quot; id=&quot;birthday_year&quot;&gt;
                                        &lt;option value=&quot;-1&quot;&gt;Year:&lt;/option&gt;
                                        &lt;option value=&quot;2011&quot;&gt;2011&lt;/option&gt;
                                        &lt;option value=&quot;2010&quot;&gt;2010&lt;/option&gt;
                                        &lt;option value=&quot;2009&quot;&gt;2009&lt;/option&gt;
                                        &lt;option value=&quot;2008&quot;&gt;2008&lt;/option&gt;
                                        &lt;option value=&quot;2007&quot;&gt;2007&lt;/option&gt;
                                        &lt;option value=&quot;2006&quot;&gt;2006&lt;/option&gt;
                                        &lt;option value=&quot;2005&quot;&gt;2005&lt;/option&gt;
                                        &lt;option value=&quot;2004&quot;&gt;2004&lt;/option&gt;
                                        &lt;option value=&quot;2003&quot;&gt;2003&lt;/option&gt;
                                        &lt;option value=&quot;2002&quot;&gt;2002&lt;/option&gt;
                                        &lt;option value=&quot;2001&quot;&gt;2001&lt;/option&gt;
                                        &lt;option value=&quot;2000&quot;&gt;2000&lt;/option&gt;
                                        &lt;option value=&quot;1999&quot;&gt;1999&lt;/option&gt;
                                        &lt;option value=&quot;1998&quot;&gt;1998&lt;/option&gt;
                                        &lt;option value=&quot;1997&quot;&gt;1997&lt;/option&gt;
                                        &lt;option value=&quot;1996&quot;&gt;1996&lt;/option&gt;
                                        &lt;option value=&quot;1995&quot;&gt;1995&lt;/option&gt;
                                        &lt;option value=&quot;1994&quot;&gt;1994&lt;/option&gt;
                                        &lt;option value=&quot;1993&quot;&gt;1993&lt;/option&gt;
                                        &lt;option value=&quot;1992&quot;&gt;1992&lt;/option&gt;
                                        &lt;option value=&quot;1991&quot;&gt;1991&lt;/option&gt;
                                        &lt;option value=&quot;1990&quot;&gt;1990&lt;/option&gt;
                                        &lt;option value=&quot;1989&quot;&gt;1989&lt;/option&gt;
                                        &lt;option value=&quot;1988&quot;&gt;1988&lt;/option&gt;
                                        &lt;option value=&quot;1987&quot;&gt;1987&lt;/option&gt;
                                        &lt;option value=&quot;1986&quot;&gt;1986&lt;/option&gt;
                                        &lt;option value=&quot;1985&quot;&gt;1985&lt;/option&gt;
                                        &lt;option value=&quot;1984&quot;&gt;1984&lt;/option&gt;
                                        &lt;option value=&quot;1983&quot;&gt;1983&lt;/option&gt;
                                        &lt;option value=&quot;1982&quot;&gt;1982&lt;/option&gt;
                                        &lt;option value=&quot;1981&quot;&gt;1981&lt;/option&gt;
                                        &lt;option value=&quot;1980&quot;&gt;1980&lt;/option&gt;
                                    &lt;/select&gt;
                                &lt;/div&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                    &lt;/table&gt;

                    &lt;div class=&quot;join_btn&quot;&gt;
                        &lt;input value=&quot;Sign Up&quot; id=&quot;join_btn&quot; type=&quot;submit&quot;&gt;
                    &lt;/div&gt;
                &lt;/form&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;
</pre><h3>CSS for Main content section</h3><pre class="brush:css">
/* main section */
#main {
    background: -moz-linear-gradient(#ffffff, #f0edeb); /* FF 3.6+ */
    background: -ms-linear-gradient(#ffffff, #f0edeb); /* IE10 */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #f0edeb)); /* Safari 4+, Chrome 2+ */
    background: -webkit-linear-gradient(#ffffff, #f0edeb); /* Safari 5.1+, Chrome 10+ */
    background: -o-linear-gradient(#ffffff, #f0edeb); /* Opera 11.10 */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0edeb'); /* IE6 &amp; IE7 */
    -ms-filter: &quot;progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0edeb')&quot;; /* IE8+ */
    background: linear-gradient(#ffffff, #f0edeb); /* the standard */ 

    position: relative;
}
#main #content {
    margin: 0 auto;
    min-height: 600px;
    overflow: hidden;
    width: 980px;
}
#main #content #promo {
    float:left;
    padding-left: 10px;
    width: 550px;
}
#main #content #promo .title {
    color: #0E385F;
    font-size: 20px;
    font-weight: bold;
    line-height: 29px;
    margin-top: 40px;
    padding-left: 10px;
    width: 450px;
    word-spacing: -1px;
}
#main #content #promo .img {
    background: url(&quot;../images/robo.png&quot;) no-repeat scroll 0 0 transparent;
    height: 400px;
    margin-top: 20px;
}
#main #content #info {
    float: right;
    padding: 43px 0 0 15px;
    width: 383px;
}
#main #content #info .title {
    font-size: 17px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: justify;
    width: 354px;
}
#main #content #join {
    float: right;
    padding: 43px 0 0 15px;
    width: 383px;
}
#main #content #join .title {
    border-bottom: 1px solid #9AAFCA;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: right;
    width: 354px;
}
#main #content #join .title .l1 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
#main #content #join .title .l2 {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 10px;
}
#main #content #join .cont {
    padding-bottom: 30px;
}
#main #content #join table {
    margin: 0 0 7px;
}
#main #content #join table td.label {
    color: #000;
    font-size: 13px;
    padding-right: 3px;
    text-align: right;
    width: 105px;
}
#main #content #join table label {
    color: #000;
    font-weight: normal;
    vertical-align: middle;
}
#main #content #join .field_container {
    display: inline-block;
    position: relative;
    width: auto;
}
#main #content #join .field_container input {
    border-color: #96A6C5;
    font-size: 16px;
    margin-top: 2px;
    padding: 6px;
    width: 250px;
}
#main #content #join .field_container select {
    border-color: #96A6C5;
    font-size: 13px;
    height: 30px;
    margin: 2px 0 0;
    padding: 5px;
}
#main #content #join .join_btn {
    margin: 0 0 0 110px;
}
#main #content #join .join_btn input[type=submit] {
    border: 1px solid #000;
    background-color: #666;
    box-shadow: 0 1px 0 rgba(150, 150, 150, 0.5);
    padding: 8px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    color: #FFF;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    outline: medium none;
}
#main #content #join .join_btn input[type=submit]:active {
    background: none repeat scroll 0 0 #000;
}
</pre><h3>3. Footer section</h3><p>Finally, here are our footer area</p><p><img
title="footer area" alt="footer area" src="http://www.script-tutorials.com/demos/154/step4.jpg" /></p><pre class="brush:html">
&lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
    &lt;div id=&quot;links&quot;&gt;&lt;!-- extra links --&gt;
        &lt;div class=&quot;copy&quot;&gt;
            &lt;div&gt;&lt;span&gt; &lt;a href=&quot;http://www.script-tutorials.com/creating-a-robo-splash-page-layout&quot;&gt;Script-tutorials &amp;copy; 2011&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;nav&quot;&gt;
            &lt;a title=&quot;Find Friends&quot; href=&quot;#&quot;&gt;Find Friends&lt;/a&gt; |
            &lt;a title=&quot;About&quot; href=&quot;#&quot;&gt;About&lt;/a&gt; |
            &lt;a title=&quot;Advertising&quot; href=&quot;#&quot;&gt;Advertising&lt;/a&gt; |
            &lt;a title=&quot;Developers&quot; href=&quot;#&quot;&gt;Developers&lt;/a&gt; |
            &lt;a title=&quot;Privacy&quot; href=&quot;#&quot;&gt;Privacy&lt;/a&gt; |
            &lt;a title=&quot;Terms&quot; href=&quot;#&quot;&gt;Terms&lt;/a&gt; |
            &lt;a title=&quot;Help&quot; href=&quot;#&quot;&gt;Help&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/footer&gt;
</pre><h3>CSS for footer section</h3><pre class="brush:css">
/* footer section */
footer {
    background-color: #ddd;
    bottom: 0;
    padding: 8px 0;
    position: fixed;
    text-align: center;
    width: 100%;
}
footer #links {
    margin:0 auto;
    overflow:hidden;
    position: relative;
    width: 960px;
}
footer #links .copy {
    margin-right: 20px;
    float: left;
    color:#808080;
}
footer #links .nav {
    text-align: right;
}
footer #links a {
    color: #000000;
    font-size: 12px;
    text-decoration: none;
}
footer #links a:hover {
    text-decoration: none;
}
</pre><hr
/><hr
/><h5 style="text-align: center;"><strong><a
title="Robo splash page layout - demo 154" href="http://www.script-tutorials.com/demos/154/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Robo splash page layout - package" href="http://www.script-tutorials.com/demos/154/source.zip" target="_blank" rel="nofollow">download result</a></strong></h5><hr
/><h3>Conclusion</h3><p>Now our layour finally complete! You can use this as is, but please leave the back link to us intact. Don`t forget to say thanks <img
src='http://www.script-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Good luck!</p><div
class="shr-publisher-1066"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> <br
/> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-mono/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/142/thumb.png" alt="Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout" /> <br
/> Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-rock-portal/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/191/thumb.png" alt="Creating new HTML5&amp;CSS3 single page layout &#8211; Rock portal" /> <br
/> Creating new HTML5&amp;CSS3 single page layout &#8211; Rock portal</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-a-robo-splash-page-layout/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to Create a Fantastic Photo Album with TN3</title><link>http://www.script-tutorials.com/how-to-create-photo-album-with-tn3/</link> <comments>http://www.script-tutorials.com/how-to-create-photo-album-with-tn3/#comments</comments> <pubDate>Wed, 21 Sep 2011 17:10:29 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[photo]]></category> <category><![CDATA[photo album]]></category> <category><![CDATA[slideshow]]></category> <category><![CDATA[tutorial]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=1031</guid> <description><![CDATA[How to create photo album with TN3 During browsing web &#8211; I noticed new interesting library &#8211; TN3. This is jQuery image gallery with slideshow, transitions effects, multiple album options etc. Plus you will able to customize it (via CSS). Today I will show you how you can implement this gallery to create own photo [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/how-to-create-a-photo-album-with-highslide/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/115/thumb.png" alt="How to Create a Photo Album with Highslide" /> How to Create a Photo Album with Highslide</a></li><li> <a
href="http://www.script-tutorials.com/image-flow-creating-photo-album-using-xml/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/29.png" alt="Image flow &#8211; Create a Stylish Scrolling Photo Album using XML" /> Image flow &#8211; Create a Stylish Scrolling Photo Album using XML</a></li><li> <a
href="http://www.script-tutorials.com/creating-photo-album-with-galleriffic-jquery-plugin/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/156/thumb.png" alt="Creating a Photo Album with Galleriffic jQuery plugin" /> Creating a Photo Album with Galleriffic jQuery plugin</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="using TN3 to build photo gallery" alt="using TN3 to build photo gallery" src="http://www.script-tutorials.com/demos/146/thumb.png"></div><p><strong>How to create photo album with TN3</strong><br
/> <br
/>During browsing web &#8211; I noticed new interesting library &#8211; TN3. This is jQuery image gallery with slideshow, transitions effects, multiple album options etc. Plus you will able to customize it (via CSS). Today I will show you how you can implement this gallery to create own photo album.<br
/> <span
id="more-1031"></span></p><p>Here are links to demo and downloadable package:</p><h5 style="text-align: center;"><strong><a
title="using TN3 to build photo gallery - demo 146" href="http://www.script-tutorials.com/demos/146/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="using TN3 to build photo gallery - demo 146" href="http://www.script-tutorials.com/demos/146/source.zip" target="_blank">download in package</a></strong></h5><hr
/><p>Ok, lets download the example files and goto coding !</p><hr
/><h3>Step 1. HTML</h3><h4>index.html</h4><p>As usual, we start with the HTML. I don`t will scare you with huge code here, wut will show most important.</p><pre class="brush:html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/tn3/tn3.css&quot; /&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;all&quot;&gt;

    &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.tn3lite.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/main.js&quot;&gt;&lt;/script&gt;

    &lt;title&gt;Creating photo galleries with TN3 | Script Tutorials&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;example&quot;&gt;
    &lt;h4&gt;Creating photo galleries with TN3 | Script Tutorials&lt;/h4&gt;

    &lt;div class=&quot;tn3gallery&quot;&gt;&lt;!-- TN3Gallery --&gt;
        &lt;div class=&quot;tn3 album&quot;&gt;

            &lt;h4&gt;Image 1 title&lt;/h4&gt;
            &lt;div class=&quot;tn3 description&quot;&gt;Image 1 description&lt;/div&gt;
            &lt;div class=&quot;tn3 thumb&quot;&gt;images/thumb_pic1.jpg&lt;/div&gt;

            &lt;ol&gt;
                &lt;li&gt;
                    &lt;h4&gt;Image 1 title&lt;/h4&gt;
                    &lt;div class=&quot;tn3 description&quot;&gt;Image 1 description&lt;/div&gt;
                    &lt;a href=&quot;images/pic1.jpg&quot;&gt;
                    &lt;img src=&quot;images/thumb_pic1.jpg&quot; /&gt;
                    &lt;/a&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;h4&gt;Image 2 title&lt;/h4&gt;
                    &lt;div class=&quot;tn3 description&quot;&gt;Image 2 description&lt;/div&gt;
                    &lt;a href=&quot;images/pic2.jpg&quot;&gt;
                    &lt;img src=&quot;images/thumb_pic2.jpg&quot; /&gt;
                    &lt;/a&gt;
                &lt;/li&gt;
                ........
                &lt;!-- all another images of our gallery --&gt;
                ........
            &lt;/ol&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><p>As you can see &#8211; gallery based on OL-LI elements. Whole structure very easy for understanding, isn`t it?</p><h3>Step 2. CSS</h3><p>Here are used CSS files for our gallery:</p><h4>css/tn3/tn3.css</h4><p>This CSS file from standard package of that TN3 gallery. We do not have to publish it here &#8211; it will be available in our package.</p><h4>css/style.css</h4><pre class="brush:css">
/* demo page styles */
body {
    background:#eee;
    margin:0;
    padding:0;
}
.example {
    position:relative;
    background-color:#fff;
    width:768px;
    overflow:hidden;
    border:1px #000 solid;
    margin:20px auto;
    padding:20px;
    border-radius:3px;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
}

/* custom styles */
.tn3-gallery {
    width: 768px;
    height: 559px;
}
.tn3-image {
    width: 768px;
    height: 512px;
}
.tn3-controls-bg {
    width: 768px;
}
.tn3-thumbs {
    width: 565px;
}
</pre><p>In our CSS file we just override a few basic styles.</p><h3>Step 3. JS</h3><h4>js/jquery.tn3lite.min.js</h4><p>This is library file, and its always available in package</p><h4>js/main.js</h4><pre class="brush:js">
$(document).ready(function() {
    var tn3 = $('.tn3gallery').tn3({
        skinDir:'css',
        imageClick:'fullscreen',
        image:{
            maxZoom:2.0,
            crop:true,
            clickEvent:'dblclick',
            transitions:[{
                type:'blinds'
            },{
                type:'grid'
            },{
                type:'grid',
                duration:350,
                easing:'easeInQuad',
                gridX:1,
                gridY:8,
                // flat, diagonal, circle, random
                sort:'random',
                sortReverse:false,
                diagonalStart:'bl',
                // fade, scale
                method:'scale',
                partDuration:360,
                partEasing:'easeOutSine',
                partDirection:'left'
            }]
        }
    });
});
</pre><p>First important things is: skinDir:&#8217;css&#8217;</p><p>With this option, we specify the folder where there will be a base css file of TN3 gallery.</p><p><a
rel="nofollow" href="http://www.tn3gallery.com/tn3-api/">Here</a> are you can find another useful documentation of this gallery.</p><h3>Step 4. Images</h3><p>All our gallery images located in &#8216;images&#8217; folder. Here are thumb images (thumb_pic1.jpg, thumb_pic2.jpg .. thumb_pic12.jpg) and full-size images (pic1.jpg, pic2.jpg .. pic12.jpg). Plus several small files of TN3 gallery located in same skin folder &#8216;css/tn3&#8242;. Here are just few files like: bg.png, tbg.png, tbg2.png and tn3.png</p><hr
/><h5 style="text-align: center;"><strong><a
title="using TN3 to build photo gallery - demo 146" href="http://www.script-tutorials.com/demos/146/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="using TN3 to build photo gallery - demo 146" href="http://www.script-tutorials.com/demos/146/source.zip" target="_blank" rel="nofollow">download in package</a></strong></h5><hr
/><h3>Conclusion</h3><p>I hope that today we made new perfect gallery. TN3 is great library, if you will learn it &#8211; it will open to you new possibilities. Good luck in your projects!</p><div
class="shr-publisher-1031"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/how-to-create-a-photo-album-with-highslide/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/115/thumb.png" alt="How to Create a Photo Album with Highslide" /> <br
/> How to Create a Photo Album with Highslide</a></li><li> <a
href="http://www.script-tutorials.com/image-flow-creating-photo-album-using-xml/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/29.png" alt="Image flow &#8211; Create a Stylish Scrolling Photo Album using XML" /> <br
/> Image flow &#8211; Create a Stylish Scrolling Photo Album using XML</a></li><li> <a
href="http://www.script-tutorials.com/creating-photo-album-with-galleriffic-jquery-plugin/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/156/thumb.png" alt="Creating a Photo Album with Galleriffic jQuery plugin" /> <br
/> Creating a Photo Album with Galleriffic jQuery plugin</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/how-to-create-photo-album-with-tn3/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Creating new HTML5/CSS3 single page layout &#8211; Art theme</title><link>http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/</link> <comments>http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/#comments</comments> <pubDate>Thu, 01 Sep 2011 13:42:59 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[art]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[website]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=966</guid> <description><![CDATA[Creating new HTML5&#38;CSS3 single page layout &#8211; Art theme Today I will like to product new great masterpiece &#8211; new template with codename: &#8216;Art theme&#8217;. This will nice HTML5 template with nice gray colors. Hope that you will like new styles and you will learn some new coding lessons. I going to start step-by-step tutorial [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-mono/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/142/thumb.png" alt="Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout" /> Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout</a></li><li> <a
href="http://www.script-tutorials.com/html5-css3-page-template-2-under-water/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/92/thumb.png" alt="Creating an Under Water Themed HTML5 &#038; CSS3 single page Layout" /> Creating an Under Water Themed HTML5 &#038; CSS3 single page Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-a-html5-css3-single-page-template/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/86/thumb.png" alt="Creating a HTML5 &#038; CSS3 Single Page Web Layout" /> Creating a HTML5 &#038; CSS3 Single Page Web Layout</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Art HTML5&amp;CSS3 single page layout" alt="Art HTML5&amp;CSS3 single page layout" src="http://www.script-tutorials.com/demos/132/thumb.png"></div><p><strong>Creating new HTML5&amp;CSS3 single page layout &#8211; Art theme</strong><br
/> <br
/>Today I will like to product new great masterpiece &#8211; new template with codename: &#8216;Art theme&#8217;. This will nice HTML5 template with nice gray colors. Hope that you will like new styles and you will learn some new coding lessons.<br
/> <br
/>I going to start step-by-step tutorial for creating html5-css3 layout.</p><p><span
id="more-966"></span></p><h3>Final Result</h3><p><img
title="final template result" alt="final template result" src="http://www.script-tutorials.com/demos/132/step1.jpg" /></p><h5 style="text-align: center;"><strong><a
title="Art HTML5&amp;CSS3 single page layout - demo 132" href="http://www.script-tutorials.com/demos/132/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Art HTML5&amp;CSS3 single page layout - demo 132" href="http://www.script-tutorials.com/demos/132/source.zip" target="_blank">download result</a></strong></h5><hr
/><h3>Get started</h3><p>Ok, let`s start. Lets create new folder and several folders inside (to keep all well structured):</p><ul><li>css &#8211; which will contain our CSS stylesheets (nivo-slider.css, reset.css and style.css)</li><li>images &#8211; which will contain all used images</li><li>js &#8211; will contain JS files (html5.js, jquery.js, jquery.nivo.slider.pack.js and main.js)</li></ul><h3>Head section code</h3><p>Now I am going to give you the usual HTML head area of index.html with the attached CSS/JS.</p><pre class="brush:html">
&lt;!DOCTYPE html&gt;&lt;!-- The new doctype --&gt;
&lt;html lang=&quot;en&quot;&gt;&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
    &lt;title&gt;Art HTML5&amp;amp;CSS3 single page layout | Script tutorials demo&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;

    &lt;!-- Linking styles --&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/reset.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/nivo-slider.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;

    &lt;!-- Linking scripts --&gt;
    &lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/jquery.nivo.slider.pack.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/main.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

    &lt;!--[if lt IE 9]&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;js/html5.js&quot;&gt;&lt;/script&gt;
    &lt;![endif]--&gt;
&lt;/head&gt;
</pre><h3>Moving forward &#8211; Main layout (body)</h3><p>Whole layout consist of 4 main section: header (with logo and navigation menu), main section (search form, social icons, slider area and first featured content area &#8211; 3 elements), second content section (two column layout for all your rest content) and footer. It looks like:</p><pre class="brush:html">
&lt;body&gt;

&lt;div class=&quot;container&quot;&gt;
    &lt;header&gt;&lt;!-- Defining the header section of the page --&gt;

        &lt;div class=&quot;logo&quot;&gt;&lt;!-- Defining the logo element --&gt;
            .........
        &lt;/div&gt;

        &lt;nav&gt;&lt;!-- Defining the navigation menu --&gt;
            .........
        &lt;/nav&gt;

    &lt;/header&gt;

    &lt;div id=&quot;main&quot;&gt;
        &lt;section id=&quot;social&quot;&gt;&lt;!-- Search form and social icons --&gt;
            .........
        &lt;/section&gt;

        &lt;section id=&quot;slider-wrapper&quot;&gt;&lt;!-- Promo slider --&gt;
            .........
        &lt;/section&gt;

        &lt;section id=&quot;content&quot;&gt;&lt;!-- Defining the content section --&gt;
            .........
        &lt;/section&gt;
    &lt;/div&gt;

    &lt;div id=&quot;submain&quot;&gt;
        &lt;section id=&quot;subcontent&quot;&gt;&lt;!-- Defining the content section #2 --&gt;
            &lt;div id=&quot;left&quot;&gt;
                .........
            &lt;/div&gt;
            &lt;div id=&quot;right&quot;&gt;
                .........
            &lt;/div&gt;
            &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

        &lt;/section&gt;

    &lt;/div&gt;

    &lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
        .........
    &lt;/footer&gt;
&lt;/div&gt;

&lt;/body&gt;
</pre><h3>here are you can see base CSS styles</h3><pre class="brush:css">
/* base styles */
body {
    background:url(../images/bg.jpg) repeat scroll center top #000;
    background-attachment:fixed;
    color:#737373;
    font-family:Georgia, &quot;Times New Roman&quot;, Times, serif;
    font-size:100%/1.125em;
}
a {
    color:#c46501;
    text-decoration:underline;
}
a:hover {
    text-decoration:none;
}
.clear {
    clear:both;
    display:block;
    height:0;
    overflow:hidden;
    visibility:hidden;
    width:0;
}
.container{
    margin:0 auto;
    position:relative;
    width:960px
}
</pre><h3>Header section with logo and navigation</h3><p><img
title="header area" alt="header area" src="http://www.script-tutorials.com/demos/132/step2.jpg" /></p><p>Our header will contain search bar, social icons (at top) and logo at left side. Here are HTML for that section:</p><pre class="brush:html">
    &lt;header&gt;&lt;!-- Defining the header section of the page --&gt;

        &lt;div class=&quot;logo&quot;&gt;&lt;!-- Defining the logo element --&gt;
            &lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;
                &lt;img src=&quot;images/logo.png&quot; title=&quot;Art template&quot; alt=&quot;Art template&quot; /&gt;
            &lt;/a&gt;
            &lt;p&gt;Art template&lt;/p&gt;
        &lt;/div&gt;

        &lt;nav&gt;&lt;!-- Defining the navigation menu --&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;Tutorials&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/about/&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/&quot;&gt;Go Back To The Tutorial&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/nav&gt;

    &lt;/header&gt;
</pre><h3>CSS for header section</h3><pre class="brush:css">
/* header section */
header {
    height:105px;
    margin:0 0 6px;
    position:relative;
    width:100%;
    z-index:2
}
.logo {
    left:19px;
    position:absolute;
    text-align:center;
    top:20px;
}
.logo img {
    margin:0 auto 3px;
}
.logo p {
    color:#808D8D;
    font-size:13px;
    font-style:italic;
    line-height:16px;
}

/*navigation menu*/
nav {
    position:absolute;
    top:10px;
    right:0px;
    z-index:2;
}
nav ul, nav ul * {
    margin:0;
    padding:0;
    list-style:none;
}
nav ul li {
    float:left;
    position:relative;
    background:url(../images/menudiv.png) no-repeat scroll 0 0 transparent;
    padding:0 0 0 2px;
}
nav ul li a {
    color:#8A9CA0;
    display:block;
    font-size:18px;
    height:85px;
    line-height:120px;
    padding:0 0 0 8px;
    text-decoration:none;
    text-transform:uppercase;
    min-width:130px;
}
</pre><h3>Main content section</h3><p>After our header area &#8211; we have main content area. This is pretty big section &#8211; in top we having search form and social icons, then we have slider (nivoSlider), and after slider &#8211; featured posts.</p><p><img
title="Main content area" alt="Main content area" src="http://www.script-tutorials.com/demos/132/step3.jpg" /></p><pre class="brush:html">
    &lt;div id=&quot;main&quot;&gt;
        &lt;section id=&quot;social&quot;&gt;&lt;!-- Search form and social icons --&gt;

            &lt;form action=&quot;#&quot; onsubmit=&quot;return false;&quot; method=&quot;get&quot;&gt;
                &lt;input type=&quot;text&quot; onfocus=&quot;if (this.value =='Search..' ) this.value=''&quot; onblur=&quot;if (this.value=='') this.value='Search..'&quot; value=&quot;Search..&quot; name=&quot;q&quot;&gt;
                &lt;input type=&quot;submit&quot; value=&quot;&quot;&gt;
            &lt;/form&gt;

            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;facebook&quot; rel=&quot;external nofollow&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/facebook.png&quot;&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;twitter&quot; rel=&quot;external nofollow&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/twitter.png&quot;&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;linkedin&quot; rel=&quot;external nofollow&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/linkedin.png&quot;&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;rss&quot; rel=&quot;external nofollow&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/rss.png&quot;&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;

        &lt;/section&gt;

        &lt;section id=&quot;slider-wrapper&quot;&gt;&lt;!-- Promo slider --&gt;
            &lt;div id=&quot;slider&quot; class=&quot;nivoSlider&quot;&gt;
                &lt;img style=&quot;display: none;&quot; src=&quot;images/promo1.jpg&quot; alt=&quot;&quot; title=&quot;#htmlcaption-1&quot;&gt;
                &lt;img style=&quot;display: none;&quot; src=&quot;images/promo2.jpg&quot; alt=&quot;&quot; title=&quot;#htmlcaption-2&quot;&gt;
                &lt;img style=&quot;display: none;&quot; src=&quot;images/promo3.jpg&quot; alt=&quot;&quot; title=&quot;#htmlcaption-3&quot;&gt;
            &lt;/div&gt;
            &lt;div id=&quot;htmlcaption-1&quot; class=&quot;nivo-html-caption&quot;&gt;
                &lt;h5 class=&quot;p2&quot;&gt;Your promo text 1&lt;/h5&gt;
                &lt;p&gt;Promo text description here&lt;/p&gt;
            &lt;/div&gt;
            &lt;div id=&quot;htmlcaption-1&quot; class=&quot;nivo-html-caption&quot;&gt;
                &lt;h5 class=&quot;p2&quot;&gt;Your promo text 2&lt;/h5&gt;
                &lt;p&gt;Promo text description here&lt;/p&gt;
            &lt;/div&gt;
            &lt;div id=&quot;htmlcaption-2&quot; class=&quot;nivo-html-caption&quot;&gt;
                &lt;h5 class=&quot;p2&quot;&gt;Your promo text 3&lt;/h5&gt;
                &lt;p&gt;Promo text description here&lt;/p&gt;
            &lt;/div&gt;
            &lt;div id=&quot;htmlcaption-3&quot; class=&quot;nivo-html-caption&quot;&gt;
                &lt;h5 class=&quot;p2&quot;&gt;Your promo text 4&lt;/h5&gt;
                &lt;p&gt;Promo text description here&lt;/p&gt;
            &lt;/div&gt;
        &lt;/section&gt;

        &lt;section id=&quot;content&quot;&gt;&lt;!-- Defining the content section --&gt;
            &lt;ul&gt;
                &lt;li&gt;
                    &lt;img src=&quot;images/post.jpg&quot; alt=&quot;&quot;&gt;
                    &lt;div class=&quot;desc&quot;&gt;&lt;p&gt;Creating A CSS3 Animated Menu&lt;/p&gt;
                        &lt;a class=&quot;more&quot; href=&quot;http://www.script-tutorials.com/creating-css3-animated-menu/&quot;&gt;Continue&lt;/a&gt;
                    &lt;/div&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;img src=&quot;images/post.jpg&quot; alt=&quot;&quot;&gt;
                    &lt;div class=&quot;desc&quot;&gt;&lt;p&gt;Animated jQuery Progressbar Plugin&lt;/p&gt;
                        &lt;a class=&quot;more&quot; href=&quot;http://www.script-tutorials.com/animated-jquery-progressbar/&quot;&gt;Continue&lt;/a&gt;
                    &lt;/div&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;img src=&quot;images/post.jpg&quot; alt=&quot;&quot;&gt;
                    &lt;div class=&quot;desc&quot;&gt;
                        &lt;p&gt;Fresh collection of Original Captchas&lt;/p&gt;
                        &lt;a class=&quot;more&quot; href=&quot;http://www.script-tutorials.com/fresh-collection-of-original-captchas/&quot;&gt;Continue&lt;/a&gt;
                    &lt;/div&gt;
                &lt;/li&gt;
            &lt;/ul&gt;

        &lt;/section&gt;
    &lt;/div&gt;
</pre><h3>CSS for Main content section</h3><pre class="brush:css">
/* main section */
#main {
    background:url(../images/mainbg.png) repeat scroll left top transparent;
    border:1.5px dashed #CBC9C7;

    -moz-box-shadow:0 0 5px 7px #eeeeee;
    -webkit-box-shadow:0 0 5px 7px #eeeeee;
    box-shadow:0 0 5px 7px #eeeeee;
    -o-box-shadow:0 0 5px 7px #eeeeee;
}
#social {
    margin:10px auto;
    width:908px;
    overflow:hidden;
}
#social form {
    float:left;
    background:url(../images/search1.png) no-repeat scroll 0 0 transparent;
    height:28px;
    width:196px;
}
#social form input[type=&quot;text&quot;] {
    background:none repeat scroll 0 0 transparent;
    border:medium none;
    color:#B5B2AA;
    float:left;
    font-size:12px;
    font-style:italic;
    height:18px;
    line-height:1.4em;
    margin:0;
    overflow:hidden;
    padding:4px 4px 4px 11px;
    width:155px;
}
#social form input[type=&quot;submit&quot;] {
    background:url(../images/search2.png) no-repeat scroll 0 0 transparent;
    border:medium none;
    cursor:pointer;
    float:left;
    height:28px;
    margin:0;
    overflow:hidden;
    padding:0;
    width:26px;
}
#social ul {
    float:right;
    list-style:none outside none;
    margin:0;
    padding:0;
}
#social ul li {
    float:left;
    padding:0 0 0 3px;
}
#social ul li a:hover img {
    margin-top:1px;
}
#content {
    margin:10px auto;
    width:908px;
    overflow:hidden;
}
#content ul {
    list-style:none outside none;
    margin:0;
    padding:0;
}
#content ul li {
    color:#FFFFFF;
    float:left;
    height:288px;
    margin:0 0 0 22px;
    overflow:hidden;
    padding:0;
    position:relative;
    width:288px;
}
#content ul li:first-child {
    margin:0;
}
#content ul li img {
    float:left;
}
#content ul li div {
    background:url(../images/s_caption.png) repeat scroll 0 0 transparent;
    bottom:-50px;
    left:0;
    padding:14px 18px 13px 15px;
    position:absolute;
    width:255px;

    -moz-transition:bottom 0.25s linear;
    -ms-transition:bottom 0.25s linear;
    -o-transition:bottom 0.25s linear;
    -webkit-transition:bottom 0.25s linear;
    transition:bottom 0.25s linear;
}
#content ul li:hover div {
    bottom:0;
}
#content ul li div p {
    color:#FFFFFF;
    font-size:13px;
    line-height:16px;
    padding:0 0 2px;
}
#content ul li div a.more {
    color:#FFFFFF;
    float:right;
    font-size:15px;
    font-style:italic;
    line-height:1.2em;
    text-decoration:underline;
}
</pre><p>Customized styles of our slider (nivoSlider) I decided to move to external file</p><h4>css/nivo-slider.css</h4><p>This file always available in our package. After main section I decided to make another one section for content</p><p><img
title="second content section" alt="second content section" src="http://www.script-tutorials.com/demos/132/step4.jpg" /></p><pre class="brush:html">
    &lt;div id=&quot;submain&quot;&gt;
        &lt;section id=&quot;subcontent&quot;&gt;&lt;!-- Defining the content section #2 --&gt;
            &lt;div id=&quot;left&quot;&gt;
                &lt;ul&gt;
                    &lt;li&gt;
                        &lt;div&gt;
                            &lt;h3&gt;Post #1&lt;/h3&gt;
                            &lt;p&gt;Post 1 description&lt;/p&gt;
                            &lt;a class=&quot;more&quot; href=&quot;#&quot;&gt;Continue&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;div&gt;
                            &lt;h3&gt;Post #2&lt;/h3&gt;
                            &lt;p&gt;Post 1 description&lt;/p&gt;
                            &lt;a class=&quot;more&quot; href=&quot;#&quot;&gt;Continue&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;div&gt;
                            &lt;h3&gt;Post #3&lt;/h3&gt;
                            &lt;p&gt;Post 1 description&lt;/p&gt;
                            &lt;a class=&quot;more&quot; href=&quot;#&quot;&gt;Continue&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
            &lt;div id=&quot;right&quot;&gt;
                &lt;ul&gt;
                    &lt;li&gt;
                        &lt;div&gt;
                            &lt;h3&gt;Attractive Presentation with HTML5&lt;/h3&gt;
                            &lt;p&gt;Today we will prepare something new – presentation. And we will using all interesting what can give us HTML5. Presentation itself will contain 5 easy slides. We will able to use navigation arrow keys for sliding, spacebar, display notes, sidebar with some custom content. Here are new html5 tags which we going to use: nav, menu, section, aside, header and hgroup. Sure, that now is time to check our demo.&lt;/p&gt;
                            &lt;a class=&quot;more&quot; href=&quot;http://www.script-tutorials.com/creating-an-attractive-presentation-with-html5/&quot;&gt;Continue&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;div&gt;
                            &lt;h3&gt;Creating Advance Level Login system with Logic captcha&lt;/h3&gt;
                            &lt;p&gt;Long ago, I talked about a simple easy login system. And today, I decided to improve the system. The new version will use the methods SHA1 + MD5 (with salt) to encode passwords. We also do not use cookies to store information, and will use the sessions. And, in this version I will implement an interesting logic captcha (where we will need to choose the correct answer in order to prove that we are human, not machine).&lt;/p&gt;
                            &lt;a class=&quot;more&quot; href=&quot;http://www.script-tutorials.com/creating-advance-level-login-system-with-logic-captcha/&quot;&gt;Continue&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
            &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

        &lt;/section&gt;

    &lt;/div&gt;
</pre><p>Here you can keep all another your posts (or another necessary content) of your website. Here are related CSS styles:</p><pre class="brush:css">
/* submain section */
#submain {
    background-color:#dbddda;
    margin-top:20px;
    padding:10px;

    border-radius:4px;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
}
#subcontent #left {
    float:left;
    width:30%;
}
#subcontent #right {
    float:left;
    margin-left:1%;
    width:69%;
}
#subcontent ul {
    list-style:none outside none;
    margin:0;
    padding:0;
}
#subcontent ul li {
    background-color:#FFFFFF;
    color:#737373;
    font-size:12px;
    line-height:18px;
    padding:7px;
    margin-bottom:10px;
    overflow:hidden;
}
#subcontent ul li:hover {
    color:#434343;
}
#subcontent ul li div {
    border:1px dashed #CBC9C7;
    padding:7px;
    overflow:hidden;
}
#subcontent ul li:hover div {
    border-color:#434343;
}
#subcontent ul li h3 {
    font-size:24px;
    font-weight:normal;
    line-height:1.2em;
    margin:0;
    padding:0 0 3px;
    text-transform:uppercase;
}
#subcontent ul li p {
    padding:0 0 13px;
}
#subcontent ul li a.more {
    color:#829597;
    float:right;
    font-size:12px;
    line-height:16px;
    padding:0 18px 0 0;
    text-decoration:none;
    text-transform:uppercase;
}
#subcontent ul li:hover a.more {
    color:#434343;

    -moz-transition:color 0.5s linear;
    -ms-transition:color 0.5s linear;
    -o-transition:color 0.5s linear;
    -webkit-transition:color 0.5s linear;
    transition:color 0.5s linear;
}
</pre><h3>Footer section</h3><p>Finally, here are our footer area</p><p><img
title="footer area" alt="footer area" src="http://www.script-tutorials.com/demos/132/step5.jpg" /></p><pre class="brush:html">
    &lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
            Art template © 2011 &lt;a class=&quot;link&quot; href=&quot;http://www.script-tutorials.com/&quot;&gt;Privacy Policy&lt;/a&gt;&lt;br /&gt;
            &lt;a class=&quot;link&quot; href=&quot;http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/&quot;&gt;Template by Script Tutorials&lt;/a&gt;
    &lt;/footer&gt;
</pre><h3>CSS for footer section</h3><pre class="brush:css">
/* footer section */
footer{
    padding:25px 0;text-align:center;
    color:#979590;
    font-size:12px;
}
footer a{
    text-decoration:none;
    color:#979590;
}
</pre><hr
/><h3>JS for our template</h3><p>Here are all necessary JS scripts:</p><h4>js/html5.js, js/jquery.js and js/jquery.nivo.slider.pack.js</h4><p>All these libraries already available in package</p><h4>js/main.js</h4><pre class="brush:js">
$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'random',
        slices:15,
        boxCols:8,
        boxRows:8,
        animSpeed:500,
        pauseTime:4000,
        directionNav:false,
        directionNavHide:false,
        controlNav:false,
        captionOpacity:1
    });
});
</pre><p>nivoSlider have very easy initialization &#8211; so I hope that all easy here too.</p><hr
/><h5 style="text-align: center;"><strong><a
title="Art HTML5&amp;CSS3 single page layout - demo 132" href="http://www.script-tutorials.com/demos/132/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Art HTML5&amp;CSS3 single page layout - demo 132" href="http://www.script-tutorials.com/demos/132/source.zip" target="_blank" rel="nofollow">download result</a></strong></h5><hr
/><h3>Conclusion</h3><p>Congrats, our new template &#8216;Art theme&#8217; is complete! You can use this as is, but please leave the back link to us intact. Don`t forget to say thanks <img
src='http://www.script-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Good luck!</p><div
class="shr-publisher-966"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-mono/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/142/thumb.png" alt="Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout" /> <br
/> Creating &#8216;Mono&#8217; HTML5 CSS3 Single Page Layout</a></li><li> <a
href="http://www.script-tutorials.com/html5-css3-page-template-2-under-water/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/92/thumb.png" alt="Creating an Under Water Themed HTML5 &#038; CSS3 single page Layout" /> <br
/> Creating an Under Water Themed HTML5 &#038; CSS3 single page Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-a-html5-css3-single-page-template/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/86/thumb.png" alt="Creating a HTML5 &#038; CSS3 Single Page Web Layout" /> <br
/> Creating a HTML5 &#038; CSS3 Single Page Web Layout</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Creating CSS3/jQuery crossbrowser Drop-down menu with tabs</title><link>http://www.script-tutorials.com/creating-css3jquery-crossbrowser-dropdown-menu-with-tabs/</link> <comments>http://www.script-tutorials.com/creating-css3jquery-crossbrowser-dropdown-menu-with-tabs/#comments</comments> <pubDate>Mon, 15 Aug 2011 18:44:33 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[css]]></category> <category><![CDATA[dropdown]]></category> <category><![CDATA[menu]]></category> <category><![CDATA[tabs]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=894</guid> <description><![CDATA[Creating CSS3/jQuery crossbrowser Drop-down menu with tabs This is our seventh CSS3 menu. Today we will make dropdown menu with parental tabs (as first level). Part of the work we pass on to the shoulders of jQuery (switching tabs, display popups). In the current version &#8211; we have three levels of menus. So, lets start [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-css3-drop-sliding-list-menu-6/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/113/thumb.png" alt="Creating CSS3 Drop sliding list Menu #6" /> Creating CSS3 Drop sliding list Menu #6</a></li><li> <a
href="http://www.script-tutorials.com/click-action-css3-dropdown-menu-with-jquery/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/143/thumb.png" alt="Creating a Click-action CSS3 Dropdown Menu with jQuery" /> Creating a Click-action CSS3 Dropdown Menu with jQuery</a></li><li> <a
href="http://www.script-tutorials.com/creating-css3-dropdown-menu-2/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/91/thumb.png" alt="Creating a CSS3 Dropdown Menu #2" /> Creating a CSS3 Dropdown Menu #2</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Creating CSS3/jQuery crossbrowser Dropdown menu #7" alt="Creating CSS3/jQuery crossbrowser Dropdown menu #7" src="http://www.script-tutorials.com/demos/119/thumb.png" /></div><p><strong>Creating CSS3/jQuery crossbrowser Drop-down menu with tabs</strong></p><p>This is our seventh CSS3 menu. Today we will make dropdown menu with parental tabs (as first level). Part of the work we pass on to the shoulders of jQuery (switching tabs, display popups). In the current version &#8211; we have three levels of menus. So, lets start !</p><p><span
id="more-894"></span></p><hr
/><p>This is our final result (how menu will looks):</p><p><img
src="http://www.script-tutorials.com/demos/119/css3_menu7.jpg" alt="CSS3/jQuery menu7" /></p><p>Here are samples and downloadable package:</p><h5 style="text-align: center;"><strong><a
title="Creating CSS3/jQuery crossbrowser Dropdown menu 7 - demo 119" href="http://www.script-tutorials.com/demos/119/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Creating CSS3/jQuery crossbrowser Dropdown menu 7 - demo 119" href="http://www.script-tutorials.com/demos/119/source.zip" target="_blank">download in package</a></strong></h5><hr
/><p>Ok, download our package and lets start creating this menu!</p><hr
/><h3>Step 1. HTML</h3><p>Here are html code of our menu. I will hide repeating elements to make code smaller here. Anyway &#8211; you will able to see whole code in our package.</p><h4>index.html</h4><pre class="brush:html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;all&quot;&gt;
    &lt;script type='text/javascript' src='js/jquery.js'&gt;&lt;/script&gt;
    &lt;script type='text/javascript' src='js/script.js'&gt;&lt;/script&gt;
    &lt;title&gt;CSS3/jQuery Drop-down menu with tabs #7&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;example&quot;&gt;

    &lt;!-- defining main tabs elements --&gt;
    &lt;div id=&quot;tabs-container&quot;&gt;
        &lt;ul class=&quot;tabs&quot;&gt;
            &lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#&quot;&gt;Section one&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Section two&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Section three&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Section four&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;

    &lt;!-- defining top menu --&gt;
    &lt;div id=&quot;nav-container&quot;&gt;
        &lt;ul class=&quot;nav&quot; id=&quot;1&quot;&gt;
            &lt;!-- defining top menu elements --&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Tutorials&lt;/a&gt;
                &lt;!-- defining sub menu elements --&gt;
                &lt;ul class=&quot;sub&quot;&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;HTML / CSS&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/jquery/&quot;&gt;JS / jQuery&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/php/&quot;&gt;PHP&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/mysql/&quot;&gt;MySQL&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/resources/&quot;&gt;Resources&lt;/a&gt;
                &lt;ul class=&quot;sub&quot;&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/xslt/&quot;&gt;XSLT&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/ajax/&quot;&gt;Ajax&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;HTML / CSS&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Menus #3&lt;/a&gt;
                &lt;ul class=&quot;sub&quot;&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;link 31&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;link 32&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;link 33&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;link 34&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;link 35&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Menus #4&lt;/a&gt;
                &lt;ul class=&quot;sub&quot;&gt;
                    &lt;!-- repeated sublinks --&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/about/&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-css3jquery-crossbrowser-dropdown-menu-with-tabs/&quot;&gt;Back&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;ul class=&quot;nav&quot; id=&quot;2&quot; style=&quot;display:none;&quot;&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Menus #5&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Menus #6&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Menus #7&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;!-- and other repeated subs with similar structure --&gt;
    &lt;/div&gt;

    &lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><h3>Step 2. CSS</h3><p>Here are used CSS styles. First two selectors (you can skip it) belong to our demo page. All rest &#8211; menu #7 styles.</p><h4>css/style.css</h4><pre class="brush:css">
/* demo page styles */
body {
    background:#eee;
    margin:0;
    padding:0;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 11px;
}
.example {
    position:relative;
    background:url(&quot;../images/background.jpg&quot;) no-repeat scroll center center #fff;
    width:640px;
    height:586px;
    border:1px #000 solid;
    margin:20px auto;
    padding:5px 0;
    border-radius:3px;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
}

/* main menu styles */

/* tabs section */
#tabs-container {
    clear:both;
    font-size:11px;
    height:26px;
    margin:0 auto;
    padding:0
}
.tabs li {
    float:left;
    list-style:none;
    position:relative
}
.tabs li a:first-child {
    margin-left:10px
}
.tabs li a {
    background:#f3f3f3;
    border:none;
    border-left:1px solid #d5d5d5;
    border-right:1px solid #d5d5d5;
    border-top:1px solid #d5d5d5;
    color:#333;
    display:block;
    margin:0 2px 0 0;
    padding:6px 10px 4px
}
.tabs li.active a {
    -webkit-border-radius:4px 4px 0 0;
    background:#fff;
    border-bottom:1px solid #fff;
    border-left:1px solid #d5d5d5;
    border-radius:4px 4px 0 0;
    border-right:1px solid #d5d5d5;
    border-top:1px solid #d5d5d5;
    color:#222;
    display:block;
    padding:6px 10px 4px
}
.tabs li.child a {
    -webkit-border-radius:0 4px 0 0;
    background:#f3f3f3;
    border-radius:0 4px 0 0;
    color:#333;
    display:block;
    margin:0;
    padding:6px 10px 4px
}
.tabs li a:hover {
    background:#fafafa;
    border-bottom:1px solid #d5d5d5;
    color:#fff;
    text-decoration:none
}

/* Targeting the first level menu */
.tabs {
    display:block;
    margin:0;
    padding:1px 0 2px;
    position:absolute;
    z-index:100
}
.tabs &gt; li &gt; a:hover {
    background:#ececec;
    color:#222
}
.tabs &gt; li.active &gt; a:hover {
    -moz-border-radius:3px 3px 0 0;
    -webkit-border-radius:3px 3px 0 0;
    background:#fff;
    border-bottom:1px solid #fff;
    border-radius:3px 3px 0 0;
    color:#222
}

/*Middle Drop-Down Navigation*/
#nav-container {
    border-bottom:1px solid #d5d5d5;
    border-top:1px solid #d5d5d5;
    clear:both;
    font-size:11px;
    height:33px;
    margin:0 auto;
    padding:0
}

/* Targeting both first and second level menus */
.nav li {
    float:left;
    list-style:none;
    position:relative
}
.nav li a {
    background:url(images/arrow.png) no-repeat right;
    border:none;
    color:#222;
    display:block;
    margin:0 5px 0 0;
    padding:5px 20px 5px 8px
}

/* Targeting the first level menu */
.nav {
    display:block;
    margin:0;
    padding:5px 0 2px;
    position:absolute;
    z-index:100
}
.nav &gt; li &gt; a:hover {
    -moz-border-radius:3px 3px 0 0;
    -webkit-border-radius:3px 3px 0 0;
    background:#507aa5 url(images/arrow_hover.png) no-repeat right;
    border-radius:3px 3px 0 0;
    color:#fff;
    padding:5px 20px 5px 8px
}

/* Targeting the second level menu */
.nav li ul {
    -moz-border-radius-bottomleft:3px;
    -moz-border-radius-bottomright:3px;
    -moz-border-radius-topright:3px;
    -moz-box-shadow:1px 1px 1px #333;
    -webkit-border-bottom-right-radius:3px;
    -webkit-box-shadow:1px 1px 1px #333;
    background:#507aa5;
    border-bottom-left-radius:3px;
    border-bottom-right-radius:3px;
    border-top-right-radius:3px;
    box-shadow:1px 1px 1px #333;
    color:#222;
    display:none;
    margin:0;
    padding:2px 0;
    position:absolute;
    width:140px
}
.nav li ul li {
    width:100%
}
.nav li ul li a {
    background:#507aa5;
    border:none;
    color:#fff;
    line-height:25px;
    margin:0;
    padding:0 0 0 8px
}
.nav li ul li a:hover {
    background:#466A90
}
.nav li ul li.strong-archive a {
    border-top:1px solid #466A90;
    font-weight:600
}

/* A class of current will be added via jQuery */
.nav li.current &gt; a {
    -moz-border-radius:3px 3px 0 0;
    -moz-box-shadow:1px 1px 1px #333;
    -webkit-border-radius:3px 3px 0 0;
    -webkit-box-shadow:1px 1px 1px #333;
    background:#507aa5 url(images/arrow_hover.png) no-repeat right;
    border-radius:3px 3px 0 0;
    box-shadow:1px 1px 1px #333;
    color:#fff
}

/* CSS fallback */
.nav li:hover &gt; ul.child {
    display:block
}
</pre><h3>Step 3. Images</h3><p>Here are only one image for background of demo:</p><pre class="sources">
    <img src="http://www.script-tutorials.com/demos/119/images/background.jpg" alt="page background" />
</pre><h3>Step 4. JS</h3><p>In our menu I using jQuery a little. Beside jquery.js (in &#8216;js&#8217; folder), I have also:</p><h4>js/script.js</h4><pre class="brush:js">
$(document).ready(function(){
    $('.tabs li a').click(function () {
      $('.tabs li').removeClass('active');
      $(this).parent().addClass('active');

      $('.nav').hide();
      var index = $('.tabs li a').index(this);
      $('.nav').eq(index).show();
      return false;
    });

    $('.nav li').has('ul').hover(function(){
        $(this).addClass('current').children('ul').fadeIn();
    }, function() {
        $(this).removeClass('current').children('ul').hide();
    });
});
</pre><p>This code is very simple, so I hope to not have to explain every line here.</p><hr
/><h5 style="text-align: center;"><strong><a
title="Creating CSS3/jQuery crossbrowser Dropdown menu 7 - demo 119" href="http://www.script-tutorials.com/demos/119/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Creating CSS3/jQuery crossbrowser Dropdown menu 7 - demo 119" href="http://www.script-tutorials.com/demos/119/source.zip" target="_blank" rel="nofollow">download in package</a></strong></h5><hr
/><h3>Conclusion</h3><p>Today we made new nice menu (seventh), Your comments and thanks are very welcomed. Good luck!</p><div
class="shr-publisher-894"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-css3-drop-sliding-list-menu-6/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/113/thumb.png" alt="Creating CSS3 Drop sliding list Menu #6" /> <br
/> Creating CSS3 Drop sliding list Menu #6</a></li><li> <a
href="http://www.script-tutorials.com/click-action-css3-dropdown-menu-with-jquery/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/143/thumb.png" alt="Creating a Click-action CSS3 Dropdown Menu with jQuery" /> <br
/> Creating a Click-action CSS3 Dropdown Menu with jQuery</a></li><li> <a
href="http://www.script-tutorials.com/creating-css3-dropdown-menu-2/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/91/thumb.png" alt="Creating a CSS3 Dropdown Menu #2" /> <br
/> Creating a CSS3 Dropdown Menu #2</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-css3jquery-crossbrowser-dropdown-menu-with-tabs/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Creating an Attractive HTML CSS Anime Theme Website Layout</title><link>http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/</link> <comments>http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/#comments</comments> <pubDate>Wed, 10 Aug 2011 17:08:21 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[anime]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[website]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=870</guid> <description><![CDATA[Creating an Attractive HTML CSS Anime Theme Website Layout Today I will like to product new masterpiece &#8211; new template with codename: &#8216;Anime theme&#8217;. This will nice HTML5 template with good colors. Hope that you can learn some new coding lessons and download our result and use it at your own site (its free as [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-layout-4-gray-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/109/thumb.png" alt="Creating new HTML CSS website layout #4 &#8211; Gray theme" /> Creating new HTML CSS website layout #4 &#8211; Gray theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/100/thumb.png" alt="Creating A Dark and clean HTML CSS website layout" /> Creating A Dark and clean HTML CSS website layout</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Creating single page layout #5" alt="Creating single page layout #5" src="http://www.script-tutorials.com/demos/116/thumb.png"></div><p><strong>Creating an Attractive HTML CSS Anime Theme Website Layout</strong><br
/> <br
/>Today I will like to product new masterpiece &#8211; new template with codename: &#8216;Anime theme&#8217;. This will nice HTML5 template with good colors. Hope that you can learn some new coding lessons and download our result and use it at your own site (its free as usual).<br
/> <br
/>I going to start step-by-step tutorial for creating html-css layout.</p><p><span
id="more-870"></span></p><h3>Final Result</h3><p><img
title="final template result" alt="final template result" src="http://www.script-tutorials.com/demos/116/step1.jpg" /></p><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #5 - demo 116" href="http://www.script-tutorials.com/demos/116/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #5 - demo 116" href="http://www.script-tutorials.com/demos/116/source.zip" target="_blank">download result</a></strong></h5><hr
/><h3>Get started</h3><p>Ok, let`s start. Lets create new folder and few more folders inside (to keep all well structured):</p><ul><li>css &#8211; which will contain CSS stylesheets (menu.css and style.css)</li><li>images &#8211; which will contain all used images</li><li>js &#8211; will contain JS files (html5.js)</li></ul><h3>Head section code</h3><p>Now I am going to give you the usual HTML head area of index.html with the attached CSS/JS.</p><pre class="brush:html">
&lt;!DOCTYPE html&gt;&lt;!-- The new doctype --&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Creating a HTML5 &amp;amp; CSS3 Single Page Web Layout #5 Anime theme | Script tutorials&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;

    &lt;!-- Linking styles --&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/menu.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt; 

    &lt;!-- Linking scripts --&gt;
    &lt;!--[if lt IE 9]&gt;
        &lt;script src=&quot;js/html5.js&quot;&gt;&lt;/script&gt;
    &lt;![endif]--&gt;
&lt;/head&gt;
</pre><h3>Moving forward &#8211; Main layout (body)</h3><p>Whole layout consist of 4 main section: header (with social icons and search), logo, main section (nav menu, main content in 2 columns) and footer. It looks like:</p><pre class="brush:html">
&lt;body&gt;
    &lt;header&gt;&lt;!-- Defining the header section of the page --&gt;
        ........
    &lt;/header&gt;

    &lt;!-- Defining main logo --&gt;
    &lt;div class=&quot;logo&quot;&gt;
        ........
    &lt;/div&gt;

    &lt;section class=&quot;content&quot;&gt;&lt;!-- Defining the main content section of the page --&gt;
        ........
    &lt;/section&gt;

    &lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
        ........
    &lt;/footer&gt;
&lt;/body&gt;
</pre><h3>here are you can see base CSS styles</h3><pre class="brush:css">
/* base common styles */
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;}

* {
    margin:0;
    padding:0;
}
img {
    border-width:0;
}
body {
    background:url(../images/bg.jpg) repeat-x scroll center top #000;
    color:#c7b8a3;
    font-family:&quot;Trebuchet MS&quot;, Arial, Helvetica, sans-serif;
    font-size:0.75em;
}
a {
    color:#c46501;
    text-decoration:underline;
}
a:hover {
    text-decoration:none;
}
.clear {
    clear:both;
    display:block;
    height:0;
    overflow:hidden;
    visibility:hidden;
    width:0;
}
</pre><h3>Header section and logo</h3><p><img
title="header area" alt="header area" src="http://www.script-tutorials.com/demos/116/step2.jpg" /></p><p>Our header will contain search bar, social icons (at top) and logo at left side. Here are HTML for that section:</p><pre class="brush:html">
    &lt;header&gt;&lt;!-- Defining the header section of the page --&gt;
        &lt;div class=&quot;header&quot;&gt;
            &lt;div class=&quot;social_icons&quot;&gt;
                &lt;a href=&quot;#&quot; title=&quot;Facebook&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/facebook.png&quot;&gt;&lt;/a&gt;
                &lt;a href=&quot;#&quot; title=&quot;Twitter&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/twitter.png&quot;&gt;&lt;/a&gt;
                &lt;a href=&quot;#&quot; title=&quot;RSS&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/rss.png&quot;&gt;&lt;/a&gt;
            &lt;/div&gt;
            &lt;div class=&quot;search&quot;&gt;
                &lt;form action=&quot;&quot; method=&quot;get&quot;&gt;
                    &lt;input type=&quot;text&quot; name=&quot;q&quot; value=&quot;&quot; /&gt;
                    &lt;input type=&quot;submit&quot; value=&quot;search&quot; /&gt;
                &lt;/form&gt;
            &lt;/div&gt;
            &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/header&gt;

    &lt;!-- Defining main logo --&gt;
    &lt;div class=&quot;logo&quot;&gt;
        &lt;a href=&quot;&quot; title=&quot;Anime theme&quot;&gt;&lt;img src=&quot;images/logo.png&quot; /&gt;&lt;/a&gt;
    &lt;/div&gt;
</pre><h3>CSS for Header section</h3><pre class="brush:css">
/*header*/
header {
    background-color:#1f1f1f;
}
header .header {
    overflow:hidden;
    position:relative;
    width:960px;
    height:42px;
    margin:0 auto;
}
header .search {
    float:right;
    margin-top:10px;
    width:300px;
}
header .search input[type=text] {
    background-color:#443e30;
    border:1px solid #2F2C29;
    color:#FFF;
    font-size:1em;
    height:20px;
    margin-right:5px;
    width:203px;
    padding:1px 0 0 3px;
}
header .search input[type=submit] {
    background-image:url(../images/search.gif);
    height:21px;
    width:60px;
    font-size:0.9em;
    border-width:0;
}
header .social_icons {
    float:right;
    margin-right:5px;
    margin-top:5px;
}
.logo {
    position:relative;
    width:960px;
    height:225px;
    margin:0 auto;
}
.logo img {
    margin:20px 10px;
}
</pre><h3>Main content section</h3><p>After our header area &#8211; we have main content area. In top we will have navigation menu, then &#8211; rest content (2 columns). First column can contain full length posts, second &#8211; for categories (or archive links). Of course &#8211; you can customize here anything.</p><p><img
title="Main content area" alt="Main content area" src="http://www.script-tutorials.com/demos/116/step3.jpg" /></p><pre class="brush:html">
    &lt;section class=&quot;content&quot;&gt;&lt;!-- Defining the main content section of the page --&gt;

        &lt;!-- navigation menu --&gt;
        &lt;nav&gt;
            &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Anime News&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Anime Archive&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Feedback&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme&quot;&gt;Tutorial&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/nav&gt;
        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

        &lt;div class=&quot;column&quot;&gt;

            &lt;div class=&quot;post&quot;&gt;
                &lt;div class=&quot;title&quot;&gt;
                    &lt;div class=&quot;date&quot;&gt;&lt;span&gt;31&lt;/span&gt;July&lt;/div&gt;
                    &lt;h2&gt;&lt;a href=&quot;#&quot; title=&quot;post 1&quot;&gt;The Ghost with the Most&lt;/a&gt;&lt;/h2&gt;
                &lt;/div&gt;
                &lt;div class=&quot;text-box&quot;&gt;
                    &lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;images/post.png&quot;&gt;&lt;br&gt;Back in March I wrote a Brain Diving column on Otsuichi's Summer, Fireworks, and My Corpse, bragging about how nice the weather was in Austin and that I was getting in the mood for summer. Ugh, what was I thinking? Now that we've broken the record for the most number of consecutive days over 100 F, I feel that by writing that I was like Homer Simpson running around shouting &quot;No comeuppance!&quot; You can have summer - I'm thoroughly done with it.&lt;/p&gt;
                &lt;/div&gt;
                &lt;div class=&quot;comments&quot;&gt;
                    &lt;a href=&quot;#&quot; title=&quot;comments on post 1&quot;&gt;10 Comments&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;post&quot;&gt;
                &lt;div class=&quot;title&quot;&gt;
                    &lt;div class=&quot;date&quot;&gt;&lt;span&gt;17&lt;/span&gt;July&lt;/div&gt;
                    &lt;h2&gt;&lt;a href=&quot;#&quot; title=&quot;post 1&quot;&gt;Disney To Adapt Tuxedo Gin&lt;/a&gt;&lt;/h2&gt;
                &lt;/div&gt;
                &lt;div class=&quot;text-box&quot;&gt;
                    &lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;images/post.png&quot;&gt;&lt;br&gt;Walt Disney Pictures has hired Reno 911 co-creator Robert Ben Garant to write &quot;Tux,&quot; a screenplay based on Tokihiko Matsuura`s romantic comedy manga Tuxedo Gin. The 1997-2000 manga series stars &quot;a young street fighter who falls into a coma and learns that he has lived his life so selfishly that he only has enough karma points to be reincarnated as an animal 15 pounds or less. Trapped in the body of a chin-strap penguin, he tries to overcome the humiliation and rack up enough good deeds to get his old body back and save the girl he loves.&quot; Garant wrote the screenplays for Disney`s 2005 films Herbie Fully Loaded and The Pacifier. The film will be produced by Paul Young and Peter Principato of Principato-Young Entertainment, VIZ Media`s Jason Hoffs, and Shogakukan`s Ichiro Takase.&lt;/p&gt;
                &lt;/div&gt;
                &lt;div class=&quot;comments&quot;&gt;
                    &lt;a href=&quot;#&quot; title=&quot;comments on post 1&quot;&gt;20 Comments&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;

        &lt;/div&gt;

        &lt;div class=&quot;sidebar&quot;&gt;
            &lt;div class=&quot;block&quot;&gt;
                &lt;h2&gt;Categories&lt;/h2&gt;
                &lt;ul&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;Black &amp;amp; white&lt;/a&gt; (4)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;Fantasies&lt;/a&gt; (3)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;Music&lt;/a&gt; (3)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;Nature&lt;/a&gt; (3)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;Portraits&lt;/a&gt; (2)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;Urban&lt;/a&gt; (2)&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;

            &lt;div class=&quot;block&quot;&gt;
                &lt;h2&gt;Archives&lt;/h2&gt;
                &lt;ul&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;July 2011&lt;/a&gt; (5)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;June 2011&lt;/a&gt; (5)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;May 2011&lt;/a&gt; (5)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;April 2011&lt;/a&gt; (5)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;March 2011&lt;/a&gt; (5)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;February 2011&lt;/a&gt; (5)&lt;/li&gt;
                    &lt;li&gt;&lt;a title=&quot;&quot; href=&quot;#&quot;&gt;January 2011&lt;/a&gt; (5)&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
    &lt;/section&gt;
</pre><h3>CSS for navigation menu</h3><h4>css/menu.css</h4><pre class="brush:css">
nav {
    overflow:hidden;
    position:relative;
    width:910px;
    background:url(&quot;../images/menu-bg.png&quot;) no-repeat scroll left top transparent;
    margin:10px auto;
    padding:10px;
}
nav ul {
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    overflow:hidden;
    margin:0;
    padding:0;
}
nav ul li {
    background:url(&quot;../images/menu-devider.gif&quot;) no-repeat scroll left top transparent;
    float:left;
    font-size:1.5em;
    line-height:normal;
    margin-left:-2px;
    overflow:hidden;
    padding:0;
}
nav ul li a {
    color:#000;
    display:block;
    font-family:Tahoma,Arial,Helvetica,serif;
    font-weight:400;
    text-decoration:none;
    text-transform:none;
    padding:3px 24px 5px 26px;
}
nav ul li a:hover {
    text-decoration:none;
    color:#fc0;
}
</pre><h3>CSS for Main content section</h3><pre class="brush:css">
/*center content*/
section.content {
    overflow:hidden;
    position:relative;
    width:960px;
    background:transparent url(../images/cbg.png) repeat-x scroll center top;
    -moz-border-radius:15px;
    -webkit-border-radius:15px;
    border-radius:15px;
    margin:0 auto;
}
.content .column {
    float:left;
    width:605px;
    padding:0 23px 7px 28px;
}
.content .sidebar {
    float:left;
    width:235px;
    border-left:1px solid #444;
    padding:0 39px 7px 25px;
}

.post {
    overflow:hidden;
    padding-bottom:13px;
}
.post .title {
    overflow:hidden;
    padding-top:5px;
    width:100%;
}
.post .title .date {
    background:url(&quot;../images/date-bg.png&quot;) no-repeat scroll left top transparent;
    color:#444;
    float:left;
    font-size:1.167em;
    font-weight:400;
    line-height:1em;
    margin-right:16px;
    text-align:center;
    width:69px;
    padding:5px 0 8px;
}
.title .date span {
    display:block;
    font-size:2.357em;
    line-height:1em;
}
.post .title h2 {
    color:#C7B8A3;
    font-size:2.5em;
    font-weight:400;
    line-height:1.01em;
    text-transform:none;
    padding:15px 0 0;
}
.post .title h2 a {
    color:#C7B8A3;
    text-decoration:none;
}
.post .title h2 a:hover {
    text-decoration:underline;
}
.post .text-box {
    font-size:1.09em;
    line-height:1.35em;
    overflow:hidden;
    padding-top:10px;
    padding-bottom:10px;
    width:100%;
}
.post .text-box img {
    margin:10px 0;
}
.post .comments {
    color:#E29111;
    font-size:1.083em;
    line-height:1em;
    overflow:hidden;
    text-transform:none;
    padding:0 0 16px;
}

.sidebar .block {
    padding:7px 30px 50px 7px;
}
.sidebar .block h2 {
    font-size:2.5em;
    margin:10px 0;
}
.sidebar ul {
    width:100%;
}
.sidebar li {
    color:#EF6A1B;
    font-size:1.083em;
    font-weight:700;
    line-height:1.146em;
    padding:4px 0 5px;
}
.sidebar li a {
    color:#C7B8A3;
    text-decoration:none;
}
</pre><h3>Footer section</h3><p>Here are our footer area</p><p><img
title="footer area" alt="footer area" src="http://www.script-tutorials.com/demos/116/step4.jpg" /></p><pre class="brush:html">
    &lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
        &lt;div&gt;Anime theme &amp;copy; 2011 &amp;nbsp;:&amp;nbsp; &lt;a class=&quot;link&quot; href=&quot;#&quot;&gt;Privacy&lt;/a&gt;&lt;/div&gt;
    &lt;/footer&gt;
</pre><h3>CSS for footer section</h3><pre class="brush:css">
/*footer*/
footer {
    width:100%;
    background-color:#111;
}
footer div {
    font-size:1.4em;
    position:relative;
    width:960px;
    margin:0 auto;
    padding:30px 0 40px 40px;
}
</pre><hr
/><h3>JS for our template</h3><p>Here are all necessary custom JS scripts</p><h4>js/html5.js</h4><p>This file already available in package</p><hr
/><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #5 - demo 116" href="http://www.script-tutorials.com/demos/116/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #5 - demo 116" href="http://www.script-tutorials.com/demos/116/source.zip" target="_blank" rel="nofollow">download result</a></strong></h5><hr
/><h3>Conclusion</h3><p>Congrats, our new template &#8216;Anime theme&#8217; is complete! You can use this as is, but please leave the back link to us intact. Don`t forget to say thanks <img
src='http://www.script-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div
class="shr-publisher-870"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-layout-4-gray-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/109/thumb.png" alt="Creating new HTML CSS website layout #4 &#8211; Gray theme" /> <br
/> Creating new HTML CSS website layout #4 &#8211; Gray theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> <br
/> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/100/thumb.png" alt="Creating A Dark and clean HTML CSS website layout" /> <br
/> Creating A Dark and clean HTML CSS website layout</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Creating CSS3 Drop sliding list Menu #6</title><link>http://www.script-tutorials.com/creating-css3-drop-sliding-list-menu-6/</link> <comments>http://www.script-tutorials.com/creating-css3-drop-sliding-list-menu-6/#comments</comments> <pubDate>Sat, 06 Aug 2011 16:26:04 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css tutorial]]></category> <category><![CDATA[down]]></category> <category><![CDATA[drop]]></category> <category><![CDATA[drop down list]]></category> <category><![CDATA[list]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=856</guid> <description><![CDATA[Creating CSS3 Drop sliding list Menu #6 This is our sixth CSS3 menu. Today we will make drop sliding list menu. We will using transition effects for sliding submenus. Of course, make attention that this animation will work only in most fresh browsers like FF, Chrome, Safary, ID9, Opera10. Older browsers will supported too, but [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-css3jquery-crossbrowser-dropdown-menu-with-tabs/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/119/thumb.png" alt="Creating CSS3/jQuery crossbrowser Drop-down menu with tabs" /> Creating CSS3/jQuery crossbrowser Drop-down menu with tabs</a></li><li> <a
href="http://www.script-tutorials.com/creating-css3-dropdown-menu-2/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/91/thumb.png" alt="Creating a CSS3 Dropdown Menu #2" /> Creating a CSS3 Dropdown Menu #2</a></li><li> <a
href="http://www.script-tutorials.com/creating-css3-animated-menu/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/126/thumb.png" alt="Creating A CSS3 Animated Menu" /> Creating A CSS3 Animated Menu</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Creating CSS3 Drop sliding list Menu #6" alt="Creating CSS3 Drop sliding list Menu #6" src="http://www.script-tutorials.com/demos/113/thumb.png" /></div><p><strong>Creating CSS3 Drop sliding list Menu #6</strong></p><p>This is our sixth CSS3 menu. Today we will make drop sliding list menu. We will using transition effects for sliding submenus. Of course, make attention that this animation will work only in most fresh browsers like FF, Chrome, Safary, ID9, Opera10. Older browsers will supported too, but without animation.</p><p><span
id="more-856"></span></p><hr
/><p>This is our final result (how menu will looks):</p><p><img
src="http://www.script-tutorials.com/demos/113/css3_menu6.jpg" alt="css3 menu6" /></p><p>Here are samples and downloadable package:</p><h5 style="text-align: center;"><strong><a
title="Creating CSS3 Drop sliding list Menu 6 - demo 113" href="http://www.script-tutorials.com/demos/113/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Creating CSS3 Drop sliding list Menu 6 - demo 113" href="http://www.script-tutorials.com/demos/113/source.zip" target="_blank">download in package</a></strong></h5><hr
/><p>Ok, download our example files (package) and lets start making this menu!</p><hr
/><h3>Step 1. HTML</h3><p>Here are html code of our menu. I will hide repeating elements to make code smaller here. Anyway &#8211; you will able to see whole code in our package.</p><h4>index.html</h4><pre class="brush:html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;all&quot;&gt;
    &lt;title&gt;CSS3 Drop sliding list menu #6&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;example&quot;&gt;
	&lt;ul class=&quot;menu&quot;&gt;
        &lt;!-- defining top elements --&gt;
		&lt;li class=&quot;main&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li class=&quot;main&quot; id=&quot;has-sub1&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Tutorials&lt;/a&gt;&lt;/li&gt;
		&lt;li class=&quot;main&quot; id=&quot;has-sub2&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/resources/&quot;&gt;Resources&lt;/a&gt;&lt;/li&gt;
		&lt;li class=&quot;main&quot; id=&quot;has-sub3&quot;&gt;&lt;a href=&quot;#&quot;&gt;Menus #4&lt;/a&gt;&lt;/li&gt;
		&lt;li class=&quot;main&quot; id=&quot;has-sub4&quot;&gt;&lt;a href=&quot;#&quot;&gt;Menus #5&lt;/a&gt;&lt;/li&gt;
		&lt;li class=&quot;main&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/about/&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li class=&quot;main&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-css3-drop-sliding-list-menu-6/&quot;&gt;Back&lt;/a&gt;&lt;/li&gt;

        &lt;!-- defining sub elements --&gt;
        &lt;li class=&quot;sub&quot; id=&quot;sub1&quot;&gt;
            &lt;table&gt;&lt;tr&gt;
                &lt;td&gt;
    				&lt;dl&gt;
    					&lt;dt&gt;Links #1&lt;/dt&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;HTML / CSS&lt;/a&gt;&lt;/dd&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/jquery/&quot;&gt;JS / jQuery&lt;/a&gt;&lt;/dd&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/php/&quot;&gt;PHP&lt;/a&gt;&lt;/dd&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/mysql/&quot;&gt;MySQL&lt;/a&gt;&lt;/dd&gt;
    					&lt;dt&gt;Links #2&lt;/dt&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/xslt/&quot;&gt;XSLT&lt;/a&gt;&lt;/dd&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/ajax/&quot;&gt;Ajax&lt;/a&gt;&lt;/dd&gt;
                        &lt;dd&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;HTML / CSS&lt;/a&gt;&lt;/dd&gt;
    				&lt;/dl&gt;
                &lt;/td&gt;
                &lt;td&gt;
    				&lt;dl&gt;
    					&lt;dt&gt;Links #3&lt;/dt&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 31&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 32&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 33&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 34&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 35&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 36&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 37&lt;/a&gt;&lt;/dd&gt;
    					&lt;dd&gt;&lt;a href=&quot;#&quot;&gt;link 38&lt;/a&gt;&lt;/dd&gt;
    				&lt;/dl&gt;
                &lt;/td&gt;
                &lt;td&gt;
    				&lt;dl&gt;
    					&lt;!-- repeated sublinks --&gt;
    				&lt;/dl&gt;
                &lt;/td&gt;
            &lt;/tr&gt;&lt;/table&gt;
        &lt;/li&gt;

        &lt;!-- and other repeated subs with similar structure --&gt;
	&lt;/ul&gt;

    &lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><h3>Step 2. CSS</h3><p>Here are used CSS styles. First two selectors (you can skip it) belong to our demo page. All rest &#8211; menu #6 styles.</p><h4>css/style.css</h4><pre class="brush:css">
/* demo page styles */
body {
    background:#eee;
    margin:0;
    padding:0;
}
.example {
    position:relative;
    background:#fff url(../images/background.jpg);
    width:765px;
    height:560px;
    border:1px #000 solid;
    margin:20px auto;
    padding:20px;
    border-radius:3px;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
}

/* main menu styles */
.menu {
    font-family:Verdana, sans-serif;
    list-style:none;
    margin:0;
    min-height:35px;
    padding:0;
    position:relative;
    width:100%
}
.menu li.main {
    float:left;
    padding-right:1px
}
.menu li.main a {
    background-color:#000;
    color:#fff;
    display:block;
    font-size:13px;
    font-weight:700;
    height:35px;
    line-height:35px;
    padding:0 25px;
    text-decoration:none
}
.menu li.sub {
    background-color:#444;
    border:0;
    clear:both;
    float:left;
    height:0;
    overflow:hidden;
    position:relative;
    width:100%;

    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;

    -moz-transition: height 0.5s ease-in-out;
    -ms-transition: height 0.5s ease-in-out;
    -o-transition: height 0.5s ease-in-out;
    -webkit-transition: height 0.5s ease-in-out;
    transition: height 0.5s ease-in-out;

    -moz-border-radius: 0 0 10px 10px;
    border-radius: 0 0 10px 10px;
}
.menu li.sub table {
    width:100%
}
.menu li.sub dl {
    background-color:#fff;
    height:195px;
    margin:5px 5px 0 0;
    padding:10px;

    -moz-border-radius:8px;
    border-radius:8px
}
.menu li.sub dt {
    border:1px solid #000;
    color:#000;
    font-size:14px;
    font-weight:700;
    line-height:18px;
    margin:1px 0;
    padding:0 10px;

    border-radius:5px;
    -moz-border-radius:5px
}
.menu li.sub dt:hover {
    background-color:#ccc
}
.menu li.sub dd {
    margin:0;
    padding:0
}
.menu li.sub dd a {
    color:#666;
    display:block;
    font-size:12px;
    line-height:20px;
    padding-left:30px;
    text-decoration:none;

    -moz-border-radius:5px;
    border-radius:5px
}
.menu li.sub dd a:hover {
    background-color:#ccc;
    color:#444
}
.menu li#has-sub1:hover ~ li#sub1,
.menu li#has-sub2:hover ~ li#sub2,
.menu li#has-sub3:hover ~ li#sub3,
.menu li#has-sub4:hover ~ li#sub4 {
    height:240px;

    -moz-transition: height 0.5s ease-in-out 0.2s
    -ms-transition: height 0.5s ease-in-out 0.2s
    -o-transition: height 0.5s ease-in-out 0.2s
    -webkit-transition: height 0.5s ease-in-out 0.2s
    transition: height 0.5s ease-in-out 0.2s
}
li#sub1:hover,
li#sub2:hover,
li#sub3:hover,
li#sub4:hover {
    height:240px;

    -moz-transition: height 0.5s ease-in-out 0.2s
    -ms-transition: height 0.5s ease-in-out 0.2s
    -o-transition: height 0.5s ease-in-out 0.25
    -webkit-transition: height 0.5s ease-in-out 0.2s
    transition: height 0.5s ease-in-out 0.2s
}
</pre><h3>Step 3. Images</h3><p>Here are only one image for background:</p><pre class="sources">
    <img src="http://www.script-tutorials.com/demos/113/images/background.jpg" alt="page background" />
</pre><hr
/><h5 style="text-align: center;"><strong><a
title="Creating CSS3 Drop sliding list Menu 6 - demo 113" href="http://www.script-tutorials.com/demos/113/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="Creating CSS3 Drop sliding list Menu 6 - demo 113" href="http://www.script-tutorials.com/demos/113/source.zip" target="_blank" rel="nofollow">download in package</a></strong></h5><hr
/><h3>Conclusion</h3><p>Today we made new nice menu (sixth), your comments and thanks are very welcomed. Good luck!</p><div
class="shr-publisher-856"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-css3jquery-crossbrowser-dropdown-menu-with-tabs/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/119/thumb.png" alt="Creating CSS3/jQuery crossbrowser Drop-down menu with tabs" /> <br
/> Creating CSS3/jQuery crossbrowser Drop-down menu with tabs</a></li><li> <a
href="http://www.script-tutorials.com/creating-css3-dropdown-menu-2/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/91/thumb.png" alt="Creating a CSS3 Dropdown Menu #2" /> <br
/> Creating a CSS3 Dropdown Menu #2</a></li><li> <a
href="http://www.script-tutorials.com/creating-css3-animated-menu/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/126/thumb.png" alt="Creating A CSS3 Animated Menu" /> <br
/> Creating A CSS3 Animated Menu</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-css3-drop-sliding-list-menu-6/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Creating new HTML CSS website layout #4 &#8211; Gray theme</title><link>http://www.script-tutorials.com/creating-new-layout-4-gray-theme/</link> <comments>http://www.script-tutorials.com/creating-new-layout-4-gray-theme/#comments</comments> <pubDate>Mon, 01 Aug 2011 17:39:56 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[DHTML]]></category> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[css]]></category> <category><![CDATA[dhtml]]></category> <category><![CDATA[html]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[web layout]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=837</guid> <description><![CDATA[Creating new HTML CSS website layout #4 &#8211; Gray theme After long delay (3 weeks I was on vacation in another country &#8211; hope that you missed us), I decided to make new nice article &#8211; this will new nice template (in gray colors) for our readers. You can learn some new coding lessons and [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/116/thumb.png" alt="Creating an Attractive HTML CSS Anime Theme Website Layout" /> Creating an Attractive HTML CSS Anime Theme Website Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/100/thumb.png" alt="Creating A Dark and clean HTML CSS website layout" /> Creating A Dark and clean HTML CSS website layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Creating single page layout #4" alt="Creating single page layout #4" src="http://www.script-tutorials.com/demos/109/thumb.png"></div><p><strong>Creating new HTML CSS website layout #4 &#8211; Gray theme</strong><br
/> <br
/>After long delay (3 weeks I was on vacation in another country &#8211; hope that you missed us), I decided to make new nice article &#8211; this will new nice template (in gray colors) for our readers. You can learn some new coding lessons and download our result and use it at your own site (its free as usual).<br
/> <br
/>I going to start step-by-step tutorial for creating html-css layout.</p><p><span
id="more-837"></span></p><h3>Final Result</h3><p><img
title="final template result" alt="final template result" src="http://www.script-tutorials.com/demos/109/step1.jpg" /></p><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #4 - demo 109" href="http://www.script-tutorials.com/demos/109/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #4 - demo 109" href="http://www.script-tutorials.com/demos/109/source.zip" target="_blank">download result</a></strong></h5><hr
/><h3>Get started</h3><p>Ok, let`s start. Lets create new folder and few more folders inside (to keep proper structure):</p><ul><li>css &#8211; which will contain style files (menu.css and style.css)</li><li>images &#8211; which will contain all our images</li><li>js &#8211; we will keep here all javascripts (jquery.js, jquery.nivo.slider.js, script.js, superfish.js and supersubs.js)</li></ul><h3>Head section code</h3><p>Now I am going to give you the usual HTML head area of index.html with the attached CSS/JS.</p><pre class="brush:html">
&lt;!DOCTYPE HTML&gt;
&lt;html lang=&quot;en-US&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;title&gt;Gray Theme #4 | Script tutorials&lt;/title&gt;

    &lt;!-- Linking styles --&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/menu.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;

    &lt;!-- Linking scripts --&gt;
    &lt;!--[if lt IE 9]&gt;
        &lt;script src=&quot;http://html5shim.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;
    &lt;![endif]--&gt;
    &lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/superfish.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/supersubs.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/script.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/jquery.nivo.slider.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
</pre><h3>Moving forward &#8211; Main layout (body)</h3><p>Whole layout consist of 4 main section: header, section (promo area), primary_content (just center content) and footer. It looks like:</p><pre class="brush:html">
&lt;body&gt;

    &lt;!-- Defining the header section of the page --&gt;
    &lt;header id=&quot;header&quot;&gt;
        .........
    &lt;/header&gt;

    &lt;!-- Defining the promo(slider) section of the page --&gt;
    &lt;section id=&quot;slider-wrapper&quot;&gt;
        .........
    &lt;/section&gt;

    &lt;!-- Defining the main content section of the page --&gt;
    &lt;div class=&quot;primary_content container&quot;&gt;
        .........
    &lt;/div&gt;

    &lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
    .........
    &lt;/footer&gt;
&lt;/body&gt;
</pre><h3>CSS for main layout (plus all base styles)</h3><pre class="brush:css">
/* base styles */
* {
margin:0;
padding:0;
}

img {
border:0;
}

a {
color:#d00000;
outline:none;
text-decoration:underline;
}

a:hover,a:active {
outline:0;
text-decoration:none;
}

html,body {
min-width:960px;
}

body {
background-color:#ededed;
background-image:url(../images/tail-top.jpg);
background-position:center top;
background-repeat:repeat-x;
color:#828387;
font:100%/1.125em Arial, Helvetica, sans-serif;
font-size:13px;
font-style:normal;
position:relative;
}

ul li a {
color:#828387;
text-decoration:none;
}

ul li a:hover {
color:#E90000;
}

.container {
display:block;
margin-left:auto;
margin-right:auto;
position:relative;
width:960px;
}
</pre><p>These CSS styles defines the basic element styling, backgrounds to different sections, positions, fonts etc.</p><h3>Header section</h3><p><img
title="header area" alt="header area" src="http://www.script-tutorials.com/demos/109/step2.jpg" /></p><p>Our header will contain logo at left, and navigation menu at right side. Here are HTML for that section:</p><pre class="brush:html">
&lt;!-- Defining the header section of the page --&gt;
&lt;header id=&quot;header&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;div class=&quot;logo&quot;&gt;
            &lt;a href=&quot;#&quot; title=&quot;Gray Theme #4&quot;&gt;Theme #4&lt;/a&gt;
        &lt;/div&gt;
        &lt;nav&gt;
            &lt;!-- Defining the navigation menu --&gt;
            &lt;ul class=&quot;topnav&quot;&gt;
                &lt;li class=&quot;current&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;Tutorials&lt;/a&gt;
                    &lt;ul class=&quot;sub-menu&quot;&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;HTML / CSS&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/jquery/&quot;&gt;JS / jQuery&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/php/&quot;&gt;PHP&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/ajax/&quot;&gt;Other&lt;/a&gt;
                            &lt;ul class=&quot;sub-menu&quot;&gt;
                                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/mysql/&quot;&gt;MySQL&lt;/a&gt;&lt;/li&gt;
                                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/xslt/&quot;&gt;XSLT&lt;/a&gt;&lt;/li&gt;
                                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/ajax/&quot;&gt;Ajax&lt;/a&gt;&lt;/li&gt;
                            &lt;/ul&gt;
                        &lt;/li&gt;

                    &lt;/ul&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/html5/&quot;&gt;Tags&lt;/a&gt;
                    &lt;ul class=&quot;sub-menu&quot;&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/animation/&quot;&gt;animation&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/html5/&quot;&gt;html5&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/captcha/&quot;&gt;captcha&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/gallery/&quot;&gt;gallery&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/animation/&quot;&gt;animation&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-new-layout-4-gray-theme/&quot;&gt;Back&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/nav&gt;
    &lt;/div&gt;
&lt;/header&gt;
</pre><h3>CSS for Header section</h3><pre class="brush:css">
/* header area */
#header {
background:none repeat scroll 0 0 transparent;
display:block;
height:62px;
position:relative;
z-index:99;
}

.logo {
left:0;
position:absolute;
top:0;
}

.logo a,.logo a {
background-color:#D00000;
color:#FFF;
display:block;
font-size:3em;
height:62px;
line-height:62px;
padding:0 22px;
text-decoration:none;
}

.logo a:hover {
background:#28261d;
}

nav {
position:relative;
z-index:2;
}
</pre><h3>CSS for navigation menu</h3><h4>css/menu.css</h4><pre class="brush:css">
.topnav,.topnav * {
list-style:none;
margin:0;
padding:0;
}

.topnav {
float:right;
line-height:1.0;
margin-top:5px;
max-width:860px;
}

.topnav ul {
position:absolute;
top:-999em;
width:10em;
}

.topnav ul li {
width:100%;
}

.topnav li:hover {
visibility:inherit;
}

.topnav li {
background:none;
float:left;
margin:0;
padding:0;
position:relative;
}

.topnav a {
color:#9c9b93;
display:block;
position:relative;
text-decoration:none;
text-transform:capitalize;
}

.topnav li:hover ul,.topnav li.sfHover ul {
left:0;
top:57px;
z-index:99;
}

ul.topnav li:hover li ul,ul.topnav li.sfHover li ul,ul.topnav li li:hover li ul,ul.topnav li li.sfHover li ul {
top:-999em;
}

ul.topnav li li:hover ul,ul.topnav li li.sfHover ul {
left:10em;
margin-left:1px;
top:-9px;
}

ul.topnav li li li:hover ul,ul.topnav li li li.sfHover ul {
left:10em;
top:0;
}

.topnav &gt; li &gt; a {
font-size:16px;
height:57px;
line-height:57px;
padding:0 33px;
}

.topnav &gt; li &gt; a:hover,.topnav &gt; li.sfHover &gt; a {
background:#8f8d86;
color:#FFF;
}

.topnav &gt; li.current-menu-item &gt; a {
background:#605e57;
color:#FFF;
}

.topnav li ul {
background:url(../images/sub-menu-tail.png);
border-top:1px solid #605e57;
padding:8px 0;
}

.topnav li li a {
color:#7d7a71;
font-size:15px;
line-height:30px;
padding-left:20px;
}

.topnav li li a:hover,.topnav li li.sfHover &gt; a {
color:#28261d;
}

.topnav li:hover,.topnav li.sfHover,.topnav a:focus,.topnav a:hover,.topnav a:active,.topnav &gt; li.current-menu-item &gt; a {
outline:0;
}

.topnav a.sf-with-ul {
min-width:1px;
}
</pre><p>Hope that this was easy. Next section will promo section (jQuery Nivo Slider)</p><h3>Promo section</h3><p><img
title="promo area" alt="promo area" src="http://www.script-tutorials.com/demos/109/step3.jpg" /></p><p>In this area we will put few rotating images (slider promo) with numbered navigation buttons. I selected <a
rel="nofollow" href="http://nivo.dev7studios.com/">Nivo Slider</a> for our template (this is jQuery plugin). Here are its HTML code:</p><pre class="brush:html">
&lt;!-- Defining the promo(slider) section of the page --&gt;
&lt;section id=&quot;slider-wrapper&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;

        &lt;div id=&quot;slider&quot; class=&quot;nivoSlider&quot;&gt;
            &lt;img src=&quot;images/promo/p1.png&quot; alt=&quot;&quot; title=&quot;#sliderCaption1&quot; /&gt;
            &lt;img src=&quot;images/promo/p2.png&quot; alt=&quot;&quot; title=&quot;#sliderCaption2&quot; /&gt;
            &lt;img src=&quot;images/promo/p3.png&quot; alt=&quot;&quot; title=&quot;#sliderCaption3&quot; /&gt;
        &lt;/div&gt;
        &lt;div id=&quot;sliderCaption1&quot; class=&quot;nivo-html-caption&quot;&gt;&lt;/div&gt;
        &lt;div id=&quot;sliderCaption2&quot; class=&quot;nivo-html-caption&quot;&gt;&lt;/div&gt;
        &lt;div id=&quot;sliderCaption3&quot; class=&quot;nivo-html-caption&quot;&gt;&lt;/div&gt;

    &lt;/div&gt;
&lt;/section&gt;
</pre><h3>CSS for Promo section</h3><pre class="brush:css">
/* promo area */
#slider-wrapper {
height:496px;
overflow:hidden;
position:relative;
}

#slider {
background:url(../images/ajax-loader.gif) no-repeat 50% 50%;
height:496px;
position:relative;
width:100%;
}

#slider img {
display:none;
left:0;
position:absolute;
top:0;
}

#slider a {
border:0;
display:block;
}

.nivoSlider {
position:relative;
}

.nivoSlider img {
left:0;
position:absolute;
top:0;
}

.nivoSlider a.nivo-imageLink {
border:0;
display:none;
height:100%;
left:0;
margin:0;
padding:0;
position:absolute;
top:0;
width:100%;
z-index:60;
}

.nivo-slice {
display:block;
height:100%;
position:absolute;
z-index:50;
}

.nivo-box {
display:block;
position:absolute;
z-index:5;
}

.nivo-caption {
bottom:0;
color:#fff;
left:0;
position:absolute;
width:100%;
z-index:89;
}

.nivo-caption .nivo-caption-inner {
margin:0;
padding:0;
}

.nivo-caption a {
display:inline !important;
}

.nivo-html-caption {
display:none;
}

.nivo-directionNav a {
background:url(images/direction_nav.png) no-repeat 0 0;
border:0;
cursor:pointer;
display:block;
height:35px;
position:absolute;
text-indent:-9999px;
top:50%;
width:36px;
z-index:99;
}

.nivo-prevNav {
left:0;
}

.nivo-nextNav {
right:0;
}

.nivo-controlNav {
-moz-border-radius:7px;
-webkit-border-radius:7px;
background:url(../images/controlNavBg.gif) repeat-x left top;
border-radius:7px;
bottom:-7px;
height:32px;
padding:0 4px;
position:absolute;
right:40px;
text-align:center;
z-index:99;
}

.nivo-controlNav a {
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
color:#FFF;
cursor:pointer;
display:inline-block !important;
font-size:14px;
height:27px;
line-height:22px;
margin-top:4px;
padding:0 5px;
position:relative;
text-decoration:none;
z-index:99;
}

.nivo-controlNav a.active,.nivo-controlNav a.active:hover {
background-color:#f3f3f1;
color:#636053;
}

.nivo-controlNav a:hover {
background-color:#5b5849;
}

a.nivo-nextNav {
background-position:-36px 0;
right:0;
}

a.nivo-nextNav:hover {
background-position:-36px -35px;
}

a.nivo-prevNav {
background-position:0 0;
left:0;
}

a.nivo-prevNav:hover {
background-position:0 -35px;
}

#slider .nivo-controlNav img {
display:inline;
height:auto;
margin-right:10px;
position:relative;
width:120px;
}
</pre><h3>Main content section</h3><p>After our promo &#8211; we have main content area. I separated this section into 2 columns. First column can contain full length news, second &#8211; some featured posts (with short titles). Of course &#8211; you can customize here anything. I will provide you with HTML code of single element per each column.</p><p><img
title="Main content area" alt="Main content area" src="http://www.script-tutorials.com/demos/109/step4.jpg" /></p><pre class="brush:html">
&lt;!-- Defining the main content section of the page --&gt;
&lt;div class=&quot;primary_content container&quot;&gt;

    &lt;!-- column #1 --&gt;
    &lt;div id=&quot;column1&quot; class=&quot;column&quot;&gt;

        &lt;div class=&quot;block&quot;&gt;
            &lt;h3&gt;This is new CSS3 template #4&lt;/h3&gt;
            &lt;div class=&quot;bcon&quot;&gt;
                &lt;p&gt;Full length description of template here. Full length description of template here. Full length description of template here. Full length description of template here. Full length description of template here. Full length description of template here.&lt;/p&gt;
                &lt;p&gt;Full length description of template here. Full length description of template here. Full length description of template here. Full length description of template here. Full length description of template here. Full length description of template here.&lt;/p&gt;
            &lt;/div&gt;
            &lt;a href=&quot;#&quot; class=&quot;button&quot;&gt;&lt;span&gt;&lt;span&gt;continue&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;

        &lt;div class=&quot;block&quot;&gt;
            &lt;h3&gt;Categories&lt;/h3&gt;
            &lt;div class=&quot;bcon&quot;&gt;
                &lt;ul&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 1&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 2&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 3&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 4&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 5&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 6&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 7&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Category 8&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt;

    &lt;/div&gt;

    &lt;!-- column #2 --&gt;
    &lt;div id=&quot;column2&quot; class=&quot;column&quot;&gt;

        &lt;div class=&quot;block2&quot;&gt;
            &lt;div class=&quot;top&quot;&gt;&lt;/div&gt;
            &lt;div class=&quot;bg&quot;&gt;
                &lt;h3&gt;Featured Posts&lt;/h3&gt;
                &lt;div class=&quot;bcon&quot;&gt;
                    &lt;ul&gt;
                    &lt;li&gt;
                        &lt;a href=&quot;&quot; class=&quot;thumb&quot;&gt;&lt;img src=&quot;images/tutorial.png&quot; alt=&quot;post 1&quot; title=&quot;post 1&quot;&gt;&lt;span class=&quot;wrap&quot;&gt;&lt;/span&gt;&lt;/a&gt;
                        &lt;a href=&quot;&quot; class=&quot;date&quot;&gt;&lt;span&gt;&lt;span&gt;01.08.2011&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
                        &lt;p&gt;Short description text #1 ... &lt;/p&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;a href=&quot;&quot; class=&quot;thumb&quot;&gt;&lt;img src=&quot;images/tutorial.png&quot; alt=&quot;post 2&quot; title=&quot;post 2&quot;&gt;&lt;span class=&quot;wrap&quot;&gt;&lt;/span&gt;&lt;/a&gt;
                        &lt;a href=&quot;&quot; class=&quot;date&quot;&gt;&lt;span&gt;&lt;span&gt;02.08.2011&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
                        &lt;p&gt;Short description text #2 ... &lt;/p&gt;
                    &lt;/li&gt;
                    &lt;li&gt;
                        &lt;a href=&quot;&quot; class=&quot;thumb&quot;&gt;&lt;img src=&quot;images/tutorial.png&quot; alt=&quot;post 3&quot; title=&quot;post 3&quot;&gt;&lt;span class=&quot;wrap&quot;&gt;&lt;/span&gt;&lt;/a&gt;
                        &lt;a href=&quot;&quot; class=&quot;date&quot;&gt;&lt;span&gt;&lt;span&gt;03.08.2011&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
                        &lt;p&gt;Short description text #3 ... &lt;/p&gt;
                    &lt;/li&gt;
                    &lt;/ul&gt;
                &lt;/div&gt;
                &lt;div&gt;
                &lt;a href=&quot;#&quot; class=&quot;button&quot;&gt;&lt;span&gt;&lt;span&gt;continue&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;bot&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;

    &lt;/div&gt;

&lt;/div&gt;
</pre><h3>CSS for Main content section</h3><pre class="brush:css">
/* main area */
.primary_content {
background:url(../images/contentBoxBg.png) no-repeat scroll center top transparent;
overflow:hidden;
padding-bottom:45px;
}

.primary_content .column {
display:inline;
float:left;
margin-left:5px;
margin-right:5px;
padding-top:40px;
position:relative;
}

#column1 {
padding-left:40px;
padding-top:64px;
width:550px;
}

#column2 {
padding-right:40px;
width:310px;
}

.button {
background:url(../images/button-left.png) no-repeat left top;
color:#696969;
display:inline-block;
font-size:16px;
padding-left:6px;
text-decoration:none;
}

.button:hover {
background-position:left -29px;
color:#FFF;
}

.button span {
background:url(../images/button-right.png) no-repeat right top;
display:block;
padding-right:6px;
}

.button:hover span {
background-position:right -29px;
}

.button span span {
background:url(../images/button-tail.gif) repeat-x left top;
height:29px;
line-height:29px;
padding:0 4px;
}

.button:hover span span {
background-position:left -29px;
}

/* blocks */
.block,.block2 {
margin-bottom:30px;
}

.block .bcon,.block2 .bcon {
margin-bottom:10px;
}

.block h3,.block2 h3 {
color:#696969;
font-size:2em;
font-weight:400;
line-height:1.2em;
margin:0 0 30px;
}

.block .bcon p {
font-size:1.077em;
line-height:1.429em;
}

.block .bcon ul {
margin:0;
padding:0;
}

.block .bcon ul li {
background:url(../images/marker.png) no-repeat scroll left top transparent;
float:left;
height:auto !important;
list-style-type:none;
margin-top:6px;
min-height:18px;
padding:2px 0 1px 30px;
width:175px;
}

.block2 .top {
background:url(../images/box-top.png) no-repeat scroll left top transparent;
font-size:0;
height:10px;
line-height:0;
overflow:hidden;
}

.block2 .bg {
background:url(../images/sidebar-tail.png) repeat scroll 0 0 transparent;
overflow:hidden;
width:100%;
}

.block2 .bg &gt; h3,.block2 .bg &gt; div,.block2 .bg &gt; .button {
padding:14px 23px 0;
}

.thumb {
float:left;
height:88px;
margin:0 15px 10px 0;
position:relative;
}

.thumb img {
float:left;
height:80px;
margin:4px 0 0 4px;
width:85px;
}

a.thumb {
cursor:pointer;
}

a.thumb:hover .wrap {
background-position:left -88px;
border-color:#d00000;
}

.thumb .wrap {
background:url(../images/img-wrap-small.png) no-repeat left top;
float:left;
height:88px;
left:0;
position:absolute;
top:0;
width:93px;
}

.block2 ul li {
background:none;
list-style-type:none;
margin:45px 0 0;
overflow:hidden;
padding:0;
position:relative;
vertical-align:top;
width:100%;
}

.block2 ul li:first-child {
margin-top:0;
}

.block2 ul li .thumb {
margin-bottom:0;
}

.block2 ul li .date {
background:url(../images/postDate-left.png) no-repeat left top;
color:#FFF;
cursor:pointer;
display:inline-block;
font-size:12px;
margin:3px 0 8px;
padding-left:5px;
}

.block2 ul li .date:hover {
background-position:left -23px;
}

.block2 ul li .date span {
background:url(../images/postDate-right.png) no-repeat right top;
display:block;
padding-right:5px;
}

.block2 ul li .date:hover span {
background-position:right -23px;
}

.block2 ul li .date span span {
background:#d00000;
height:23px;
line-height:23px;
padding:0 6px;
}

.block2 ul li .date:hover span span {
background:#696969;
}

.block2 ul li p {
margin:0;
}

.block2 .bot {
background:url(../images/box-bot.png) no-repeat scroll left top transparent;
font-size:0;
height:10px;
line-height:0;
overflow:hidden;
}
</pre><h3>Footer section</h3><p>Here are our footer area</p><p><img
title="footer area" alt="footer area" src="http://www.script-tutorials.com/demos/109/step5.jpg" /></p><pre class="brush:html">
&lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
&lt;div class=&quot;footer&quot;&gt;
    &lt;div class=&quot;footer_wrap container&quot;&gt;
        &lt;div class=&quot;wcont&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;LinkBlock#1&lt;/h3&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 1&quot;&gt;Link #1&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 2&quot;&gt;Link #2&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 3&quot;&gt;Link #3&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 4&quot;&gt;Link #4&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;wcont&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;LinkBlock#2&lt;/h3&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 1&quot;&gt;Link #1&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 2&quot;&gt;Link #2&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 3&quot;&gt;Link #3&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 4&quot;&gt;Link #4&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;wcont&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;Networks&lt;/h3&gt;
            &lt;ul class=&quot;social&quot;&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/feed/rss/&quot; title=&quot;RSS&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/rss.png&quot; /&gt;RSS&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.facebook.com/pages/Script-Tutorials/226050794090255&quot; title=&quot;Facebook&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/facebook.png&quot; /&gt;Facebook&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://twitter.com/AramisGC&quot; title=&quot;Twitter&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/twitter.png&quot; /&gt;Twitter&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;wcont recent&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;Recent tutorials&lt;/h3&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/how-to-resize-images-on-server-side/&quot; title=&quot;How to Resize images on Server Side&quot;&gt;How to Resize images on Server Side&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-css3-slideout-menu-5/&quot; title=&quot;Creating CSS3 Slideout Menu #5&quot;&gt;Creating CSS3 Slideout Menu #5&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-photo-gallery-using-3d-sphere-gallery-fx/&quot; title=&quot;Creating A Globe Shaped Photo Gallery using 3D Sphere Gallery FX&quot;&gt;Creating A Globe Shaped Photo Gallery&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-a-photo-carousel-using-flashmo-230-carousel/&quot; title=&quot;Creating A Photo Carousel using Flashmo 230 carousel&quot;&gt;Creating A Photo Carousel Flashmo 230&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;copyright&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;Gray Theme #4 &amp;copy; 2011 | &lt;a href=&quot;#&quot;&gt;Privacy&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/footer&gt;
</pre><h3>CSS for footer section</h3><pre class="brush:css">
/* footer section */
.footer {
background:url(../images/footer-widget-tail.gif) repeat-x center top #605e57;
overflow:hidden;
padding:57px 0 37px;
}

.footer_wrap .wcont {
display:inline;
float:left;
margin-left:5px;
margin-right:5px;
padding-right:40px;
position:relative;
width:160px;
}

.footer_wrap .recent {
width:260px;
}

.footer_wrap .wcont h3 {
color:#E4E3E3;
font-size:18px;
font-weight:400;
margin-bottom:35px;
}

.footer_wrap .wcont ul {
margin:0;
padding:0;
}

.footer_wrap .wcont ul li {
background:none;
list-style-type:none;
margin:0;
padding:0;
}

.footer_wrap .wcont ul.social li {
margin-bottom:11px !important;
}

.footer_wrap .wcont ul li a {
color:#b7b7b7;
display:inline-block;
height:28px;
line-height:28px;
text-decoration:none;
}

.footer_wrap .wcont ul li:first-child {
margin-top:0;
}

.footer_wrap .wcont ul li a:hover {
color:#e4e3e3;
}

.footer_wrap .wcont ul li img {
float:left;
margin-right:12px;
}

footer .copyright {
background:none repeat scroll 0 0 #28261D;
font-style:italic;
padding:30px 0;
}

footer .copyright,footer .copyright a {
color:#BCBCBC;
}
</pre><hr
/><h3>JS for our template</h3><p>Here are all necessary custom JS scripts</p><h4>js/script.js</h4><pre class="brush:js">
jQuery(window).load(function() {

    // apply supersubs and superfish for navigation menu
    jQuery('ul.topnav').supersubs({minWidth: 12, maxWidth: 27, extraWidth: 1}).superfish();
    jQuery('ul.topnav').superfish({
        delay: 1000,
        animation: {opacity:'false',height:'show'},
        speed: 'normal',
        autoArrows: false,
        dropShadows: false
    });

    // nivo slider
    jQuery('#slider').nivoSlider({
        effect: 'fade',
        slices:15,
        boxCols:8,
        boxRows:8,
        animSpeed:500,
        pauseTime:5000,
        directionNav:false,
        directionNavHide:false,
        controlNav:true});
});
</pre><p>All other JS files (jquery.js, jquery.nivo.slider.js, superfish.js and supersubs.js) available in package</p><hr
/><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #4 - demo 109" href="http://www.script-tutorials.com/demos/109/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #4 - demo 109" href="http://www.script-tutorials.com/demos/109/source.zip" target="_blank" rel="nofollow">download result</a></strong></h5><hr
/><h3>Conclusion</h3><p>Congrats, our new template &#8216;Gray theme&#8217; is complete! You can use this as is, but please leave the back link to us intact. Don`t forget to say thanks <img
src='http://www.script-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div
class="shr-publisher-837"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/116/thumb.png" alt="Creating an Attractive HTML CSS Anime Theme Website Layout" /> <br
/> Creating an Attractive HTML CSS Anime Theme Website Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/100/thumb.png" alt="Creating A Dark and clean HTML CSS website layout" /> <br
/> Creating A Dark and clean HTML CSS website layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> <br
/> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-new-layout-4-gray-theme/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Creating A Dark and clean HTML CSS website layout</title><link>http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/</link> <comments>http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/#comments</comments> <pubDate>Fri, 24 Jun 2011 17:41:45 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[DHTML]]></category> <category><![CDATA[HTML/CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[css]]></category> <category><![CDATA[dark]]></category> <category><![CDATA[dark theme]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[htm]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[tutorial]]></category><guid
isPermaLink="false">http://www.script-tutorials.com/?p=775</guid> <description><![CDATA[Creating nice clean HTML CSS website layout #3 &#8211; Dark theme Today we have a little anniversary. Today`s article has a demo with the number 100 So I prepared a very interesting article &#8211; this will new nice template (in dark colors) for our readers. You can learn some new coding lessons and download result [...]<div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-layout-4-gray-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/109/thumb.png" alt="Creating new HTML CSS website layout #4 &#8211; Gray theme" /> Creating new HTML CSS website layout #4 &#8211; Gray theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/116/thumb.png" alt="Creating an Attractive HTML CSS Anime Theme Website Layout" /> Creating an Attractive HTML CSS Anime Theme Website Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li></ol></div>]]></description> <content:encoded><![CDATA[<div
class="thumb"><img
width="128" height="128" class="aligncenter" title="Creating single page layout #3" alt="Creating single page layout #3" src="http://www.script-tutorials.com/demos/100/thumb.png"></div><p><strong>Creating nice clean HTML CSS website layout #3 &#8211; Dark theme</strong><br
/> <br
/>Today we have a little anniversary. Today`s article has a demo with the number 100 <img
src='http://www.script-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> So I prepared a very interesting article &#8211; this will new nice template (in dark colors) for our readers. You can learn some new coding lessons and download result and use it at your own site (free of charge).<br
/> <br
/>I going to start step-by-step tutorial for creating html-css layout.</p><p><span
id="more-775"></span></p><h3>Final Result</h3><p><img
title="final template result" alt="final template result" src="http://www.script-tutorials.com/demos/100/step1.jpg" /></p><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #3 - demo 100" href="http://www.script-tutorials.com/demos/100/index.html" target="_blank">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #3 - demo 100" href="http://www.script-tutorials.com/demos/100/source.zip" target="_blank">download result</a></strong></h5><hr
/><h3>Get started</h3><p>Ok, let`s start. Lets create new folder and few more folders inside (to keep proper structure):</p><ul><li>css &#8211; which will contain style files (style.css, menu.css and meteor-slides.css)</li><li>images &#8211; which will contain all our images</li><li>js &#8211; we will keep here all javascripts (jquery.js, jquery.cycle.all.js, script.js and slideshow.js)</li></ul><h3>Head section code</h3><p>Now I am going to give you the usual HTML head area of index.html with the attached CSS/JS.</p><pre class="brush:html">
&lt;!DOCTYPE HTML&gt;
&lt;html lang=&quot;en-US&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;title&gt;Dark Theme #3 | Script tutorials&lt;/title&gt;

    &lt;!-- Linking styles --&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/menu.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;css/meteor-slides.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    &lt;!--[if IE 7]&gt;
    &lt;style&gt;
    .promo_area {padding:0;}
    .promo_area .meteor-nav .prev a {top:236px;}
    .promo_area .meteor-nav .next a {top:236px;}
    &lt;/style&gt;
    &lt;![endif]--&gt;

    &lt;!-- Linking scripts --&gt;
    &lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/jquery.cycle.all.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/script.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/slideshow.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
</pre><h3>Moving forward &#8211; Main layout (body)</h3><p>Whole layout consist of 3 main section: header, center (content), and footer. It looks like:</p><pre class="brush:html">
&lt;body&gt;
    &lt;div class=&quot;top&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;mid&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;bottom&quot;&gt;&lt;/div&gt;

    &lt;!-- Defining the header section of the page --&gt;
    &lt;header&gt;
        .........
    &lt;/header&gt;

    &lt;!-- Defining the main content section of the page --&gt;
    &lt;div class=&quot;content&quot;&gt;
        .........
    &lt;/div&gt;

    &lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
        .........
    &lt;/footer&gt;
&lt;/body&gt;
</pre><h3>CSS for main layout (plus all base styles)</h3><pre class="brush:css">
/* base styles */
* {margin:0; padding:0;}
img {border:0;}
.clear {clear:both; line-height:0; height:0; font-size:1px;}
.marg {width:916px; margin:0 auto;}
.mid {background:url(../images/bg.png) repeat top; width:100%; height:1108px; top:174px; left:0; position:absolute;}
.top {background:url(../images/top.jpg) repeat-x top; width:100%; height:175px; top:0; left:0; position:absolute;}
.bottom {background:url(../images/bottom.jpg) repeat-x top; width:100%; height:389px; top:1109px; position:absolute; left:0;}
body {font:13px Arial, Helvetica, sans-serif; color:#000000;}
a {text-decoration:none; color:#fff; outline:none; cursor:pointer;}
a:hover {text-decoration:underline;}
</pre><p>These CSS styles defines the basic element styling, backgrounds to different sections, positions, fonts etc.</p><h3>Header section</h3><p><img
title="header area" alt="header area" src="http://www.script-tutorials.com/demos/100/step2.jpg" /></p><p>Our header will contain logo, and navigation menu at right side. Here are HTML for that section:</p><pre class="brush:html">
&lt;!-- Defining the header section of the page --&gt;
&lt;header&gt;
&lt;div class=&quot;marg&quot;&gt;
    &lt;div class=&quot;header&quot;&gt;
        &lt;div class=&quot;logo&quot;&gt;
            &lt;a href=&quot;#&quot; title=&quot;Dark Theme #3&quot;&gt;Dark Theme #3&lt;/a&gt;
        &lt;/div&gt;
        &lt;div class=&quot;nav&quot;&gt;
            &lt;!-- Defining the navigation menu --&gt;
            &lt;ul&gt;
                &lt;li class=&quot;current&quot;&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;Home&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;Tutorials&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;/a&gt;
                    &lt;ul class=&quot;sub-menu&quot;&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/html-css/&quot;&gt;HTML / CSS&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/jquery/&quot;&gt;JS / jQuery&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/php/&quot;&gt;PHP&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/mysql/&quot;&gt;MySQL&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/xslt/&quot;&gt;XSLT&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/category/ajax/&quot;&gt;Ajax&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/html5/&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;Tags&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;/a&gt;
                    &lt;ul class=&quot;sub-menu&quot;&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/animation/&quot;&gt;animation&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/html5/&quot;&gt;html5&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/captcha/&quot;&gt;captcha&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/gallery/&quot;&gt;gallery&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/tag/animation/&quot;&gt;animation&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                &lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;Back&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
            &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/header&gt;
</pre><h3>CSS for Header section</h3><pre class="brush:css">
/* header area */
.header {position:relative; width:916px; height:174px; z-index:1000;}
.h_user {position:absolute; right:225px; top:16px; color:#292929;}
.h_user a, .h_user span, .h_user img {vertical-align:middle;}
.h_user span {padding:0 2px;}
.h_user a {color:#717171; font-size:10px; text-transform:uppercase;}
.h_user .h_tw {padding:0 2px 0 18px;}
.h_title {position:absolute; left:33px; top:23px; font-size:10px; color:#484848; text-transform:uppercase;}
.logo {position:absolute; width:231px; height:50px; left:35px; top:83px;}
.logo a {background:url(../images/logo.png) no-repeat; width:231px; height:50px; display:block; text-indent:-9999px;}
</pre><h3>CSS for Navigation menu</h3><h4>css/menu.css</h4><pre class="brush:css">
.nav {position:absolute; right:0; top:86px;}
.nav ul {list-style:none; position:relative;}
.nav ul li {display:block; float:left; position:relative; z-index:1000;}
.nav ul li a {display:block; font-family:Verdana, sans-serif; color:#c5c5c5; font-size:24px; font-weight:bold; height:49px; line-height:49px; position:relative; padding:0 9px; z-index:2;}
.nav ul li a span {display:block; height:49px;}
.nav ul li a .m {padding:0 12px;}
.nav ul li a .l {position:absolute; width:9px; left:0; top:0;}
.nav ul li a .r {position:absolute; width:9px; right:0; top:0;}
.nav ul li a:hover {text-decoration:none;}
.nav ul li a:hover .m, .nav ul li.hover a .m {background:url(../images/pag_bg.png) repeat-x top;color:#fff;}
.nav ul li a:hover .l, .nav ul li.hover a .l {background:url(../images/pag_l.png) no-repeat left;}
.nav ul li a:hover .r, .nav ul li.hover a .r {background:url(../images/pag_r.png) no-repeat right;}
.nav ul .current .m {background:url(../images/pag_bg.png) repeat-x top;}
.nav ul .current .l {background:url(../images/pag_l.png) no-repeat left;}
.nav ul .current .r {background:url(../images/pag_r.png) no-repeat right;}

.nav ul li ul {display:none; width:207px; position:absolute; z-index:1; top:49px; left:0;}
.nav ul li ul li {}
.nav ul li ul li .l, .nav ul li ul li .r {display:none;}
.nav ul li ul li .m {background:none; padding:0;}
.nav ul li ul li a {width:171px; padding:0 18px; background:#171717; font-size:18px;}
.nav ul li ul li ul {top:0; left:207px;}

.nav ul .hover ul {display:block;}
.nav ul .hover ul li ul {display:none;}
.nav ul .hover ul .hover ul {display:block;}
.nav ul .hover ul li a {background-color:#000;}
.nav ul .hover ul .hover a {background-color:#444;}
</pre><p>Pretty easy styles. Next section is central content section. As you see &#8211; I have promo section (slider) inside our main content area as first element</p><h3>Promo section</h3><p><img
title="promo area" alt="promo area" src="http://www.script-tutorials.com/demos/100/step3.jpg" /></p><p>In this area we will put few rotating images (slider promo) with prev-next buttons. I selected <a
rel="nofollow" href="http://wordpress.org/extend/plugins/meteor-slides/">Meteor Slides</a> for our template (this is jQuery plugin). Here are its HTML code:</p><pre class="brush:html">
&lt;!-- Defining the promo(slider) section of the page --&gt;
&lt;div class=&quot;promo_area&quot;&gt;
    &lt;div class=&quot;meteor-slides navprevnext&quot;&gt;
        &lt;ul class=&quot;meteor-nav&quot;&gt;
            &lt;li class=&quot;prev&quot;&gt;&lt;a href=&quot;#&quot;&gt;Previous&lt;/a&gt;&lt;/li&gt;
            &lt;li class=&quot;next&quot;&gt;&lt;a href=&quot;#&quot;&gt;Next&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;

        &lt;div class=&quot;promo_wrap&quot;&gt;
            &lt;div class=&quot;slides&quot;&gt;
                &lt;div class=&quot;slide&quot;&gt;
                    &lt;a href=&quot;#&quot; title=&quot;promo1&quot;&gt;
                    &lt;img src=&quot;images/promo/p1.jpg&quot; alt=&quot;promo1&quot; title=&quot;promo1&quot; /&gt;&lt;/a&gt;
                    &lt;div class=&quot;title&quot;&gt;&lt;p&gt;&lt;a href=&quot;#&quot; title=&quot;promo1&quot;&gt;promo 1 text&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;slide&quot;&gt;
                    &lt;a href=&quot;#&quot; title=&quot;promo2&quot;&gt;
                    &lt;img src=&quot;images/promo/p2.jpg&quot; alt=&quot;promo2&quot; title=&quot;promo2&quot; /&gt;&lt;/a&gt;
                    &lt;div class=&quot;title&quot;&gt;&lt;p&gt;&lt;a href=&quot;#&quot; title=&quot;promo2&quot;&gt;promo 2 text&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;slide&quot;&gt;
                    &lt;a href=&quot;#&quot; title=&quot;promo3&quot;&gt;
                    &lt;img src=&quot;images/promo/p3.jpg&quot; alt=&quot;promo3&quot; title=&quot;promo3&quot; /&gt;&lt;/a&gt;
                    &lt;div class=&quot;title&quot;&gt;&lt;p&gt;&lt;a href=&quot;#&quot; title=&quot;promo3&quot;&gt;promo 3 text&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</pre><h3>CSS for Promo section</h3><pre class="brush:css">
/* promo area */
.promo_area {width:1000px; margin:0 auto; padding:0 0 0 0;}
.promo_area .meteor-slides {z-index:inherit !important;}
.promo_area .meteor-slides .slides {width:860px !important; height:460px !important;}
.promo_area .meteor-slides .slide {z-index:inherit !important; width:860px !important; height:460px !important;}
.promo_wrap {background:url(../images/slider_bg.png) no-repeat; width:930px; height:489px; margin:0 auto; padding:30px 0 0 70px;}
.promo_area .meteor-nav {display:block !important;}
.promo_area .meteor-nav li {display:block !important;}
.promo_area .meteor-nav .prev a {background:url(../images/sl_l.png) no-repeat left top; width:55px; position:absolute; height:96px !important; top:202px; left:1px !important; }
.promo_area .meteor-nav .prev a:hover {background:url(../images/sl_l.png) no-repeat left bottom;}
.promo_area .meteor-nav .next a {background:url(../images/sl_r.png) no-repeat right top; width:66px; position:absolute; height:102px !important; top:202px; right:-10px !important;}
.promo_area .meteor-nav .next a:hover {background:url(../images/sl_r.png) no-repeat right bottom;}
.promo_area .title {position:absolute; bottom:0; z-index:100; background:url(../images/sl_bg.png) repeat; height:60px; width:859px;}
.promo_area .title p {line-height:60px; padding:0 0 0 20px; font-size:18px; color:#fff;}
.promo_area .title p a {color:#fff;}
.promo_area .title p a:hover {color:#ff7e20; text-decoration:none;}
</pre><h3>Main content section</h3><p>After our promo &#8211; we have main content area. I separated this section into 3 columns. All 3 columns have similar, but still different missions. Forst column will display some info about you, second &#8211; recent popular posts, third &#8211; last X posts. You can feel free to have here anything own. I will provide you with HTML code of single element per each column.</p><p><img
title="Main content area" alt="Main content area" src="http://www.script-tutorials.com/demos/100/step4.jpg" /></p><pre class="brush:html">
&lt;!-- Rest content of main area --&gt;
&lt;div class=&quot;marg main&quot;&gt;
    &lt;div class=&quot;con&quot;&gt;
        &lt;div class=&quot;con_t&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;con_bg&quot;&gt;
            &lt;div class=&quot;con_wrap&quot;&gt;

                &lt;!-- column #1 --&gt;
                &lt;div class=&quot;block&quot;&gt;
                    &lt;div class=&quot;btitle&quot;&gt;About us&lt;/div&gt;
                    &lt;div&gt;
                        &lt;img src=&quot;images/about_us.jpg&quot; alt=&quot;About us&quot; title=&quot;About us&quot; /&gt;
                    &lt;/div&gt;
                    &lt;div class=&quot;bcon&quot;&gt;
                        &lt;div&gt;About us - description, about us - description, about us - description
                            &lt;a href=&quot;#&quot; class=&quot;continue&quot;&gt;continue&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;

                &lt;!-- column #2 --&gt;
                &lt;div class=&quot;block&quot;&gt;
                    &lt;div class=&quot;btitle&quot;&gt;Recent popular&lt;/div&gt;
                    &lt;div class=&quot;post&quot;&gt;
                        &lt;div class=&quot;head&quot;&gt;
                            &lt;span&gt;06-20-2011&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;|&lt;/span&gt; &lt;span&gt; &lt;a href=&quot;#&quot;&gt;&lt;b&gt;1&lt;/b&gt; &lt;span&gt;comment&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
                        &lt;/div&gt;
                        &lt;h3 class=&quot;title&quot;&gt;
                            &lt;a href=&quot;http://www.script-tutorials.com/how-to-create-water-drops-effect-using-html5-canvas/&quot;&gt;How to create water Ripple effect using HTML5 canvas&lt;/a&gt;
                        &lt;/h3&gt;
                        &lt;div class=&quot;con&quot;&gt;
                            &lt;p&gt;Today we continue JavaScript examples, and our article will about using javascript in modeling of water effects. This will emulation of water drops at images. &lt;a href=&quot;http://www.script-tutorials.com/how-to-create-water-drops-effect-using-html5-canvas/&quot; class=&quot;continue&quot;&gt;Continue&lt;/a&gt;&lt;/p&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    ..............
                &lt;/div&gt;

                &lt;!-- column #3 --&gt;
                &lt;div class=&quot;block&quot;&gt;
                    &lt;div class=&quot;btitle&quot;&gt;All posts&lt;/div&gt;
                    &lt;ul class=&quot;snews&quot;&gt;
                        &lt;li&gt;
                            &lt;a href=&quot;#&quot;&gt;
                                &lt;div class=&quot;img&quot;&gt;
                                    &lt;img src=&quot;images/tutorial.png&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;
                                &lt;/div&gt;
                                &lt;div class=&quot;con&quot;&gt;
                                    &lt;p&gt;Short description text #1&lt;/p&gt;
                                &lt;/div&gt;
                            &lt;/a&gt;
                            &lt;br class=&quot;clear&quot; /&gt;
                        &lt;/li&gt;
                        ..............
                    &lt;/ul&gt;
                &lt;/div&gt;
                &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;con_b&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</pre><h3>CSS for Main content section</h3><pre class="brush:css">
/* main area */
.main {padding:30px 0 0 0;}
.con {position:relative; padding:5px 0 18px 0;}
.con_bg {background:url(../images/con_bg.png) repeat-y; min-height:470px;}
.con_t {background:url(../images/con_t.png) no-repeat top; position:absolute; height:458px; width:100%; top:0; left:0;}
.con_b {background:url(../images/con_b.png) no-repeat bottom; position:absolute; height:18px; width:100%; bottom:0; left:0;}
.con_wrap {z-index:1;padding:30px;}

/* blocks */
.block {float:left; width:29%; padding:0 2%; position:relative;}
.btitle {font-size:30px; color:#000; font-family:Arial, Helvetica, sans-serif; font-weight:bold; padding:0 0 25px 0;}
.bcon {padding:15px 0 0 0; line-height:19px;}
.post {padding:0 0 38px 0;}
.post .head {font-size:11px; color:#000; text-transform:uppercase; font-family:Arial, Helvetica, sans-serif; font-weight:normal; padding:0 0 6px 0;}
.post .head a {color:#000; text-decoration:none;}
.post .head b {font-weight:normal;}
.post .head span {vertical-align:middle;}
.post .head .s {padding:0 3px;}
.post .title {font-size:18px; font-family:Arial, Helvetica, sans-serif; padding:0 0 8px 0;}
.post .title a {color:#000;}
.post .con p {line-height:19px; color:#1c1c1c; padding:0 0 30px 0;}
.snews {overflow:hidden;}
.snews li {display:block; padding:7px;}
.snews li:hover {background-color:#888;}
.snews .img {display:block; float:left; width:100px;}
.snews a p {color:#1c1c1c;}
.snews :hover a p {color:#fff;}
.snews .con {float:left; display:block; width:115px; padding:9px 0 0 12px; line-height:19px;}

.continue {display:block; background:url(../images/more_link.png) no-repeat top left; width:91px; height:26px; text-indent:-9999px; margin:15px 0 0 0;}
.continue:hover {background:url(../images/more_link.png) no-repeat bottom left;}
</pre><h3>Footer section</h3><p>Here are our footer area</p><p><img
title="footer area" alt="footer area" src="http://www.script-tutorials.com/demos/100/step5.jpg" /></p><pre class="brush:html">
&lt;footer&gt;&lt;!-- Defining the footer section of the page --&gt;
&lt;div class=&quot;footer&quot;&gt;
    &lt;div class=&quot;footer_wrap&quot;&gt;
        &lt;div class=&quot;wcont&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;LinkBlock#1&lt;/h3&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 1&quot;&gt;Link #1&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 2&quot;&gt;Link #2&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 3&quot;&gt;Link #3&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 4&quot;&gt;Link #4&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 5&quot;&gt;Link #5&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;wcont&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;LinkBlock#2&lt;/h3&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 1&quot;&gt;Link #1&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 2&quot;&gt;Link #2&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 3&quot;&gt;Link #3&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 4&quot;&gt;Link #4&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 5&quot;&gt;Link #5&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;wcont&quot;&gt;
            &lt;h3 class=&quot;title&quot;&gt;LinkBlock#3&lt;/h3&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 1&quot;&gt;Link #1&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 2&quot;&gt;Link #2&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 3&quot;&gt;Link #3&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 4&quot;&gt;Link #4&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;link 5&quot;&gt;Link #5&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;foot&quot;&gt;
    &lt;div class=&quot;foot_wrap&quot;&gt;Dark Theme #3 &amp;copy; 2011 | &lt;a href=&quot;#&quot;&gt;Privacy&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/footer&gt;
</pre><h3>CSS for footer section</h3><pre class="brush:css">
/* footer section */
.footer {padding:25px 0 0 33px;}
.footer_wrap {width:800px; margin:0 auto; position:relative; padding:0 0 50px 0;}
.footer .wcont {float:left; width:235px; padding:0 15px; color:#7c7c7c;}
.footer .wcont .title {font-family:Arial, Helvetica, sans-serif; color:#fff; font-size:24px; padding:0 0 18px 0; display:block;}
.footer .wcont .title a {color:#fff;}
.footer .wcont .title a:hover {text-decoration:none;}
.footer .wcont a {color:#7c7c7c;}
.footer .wcont ul {list-style:none;}
.footer .wcont ul li {padding:5px 0 5px 10px; background:url(../images/cat_li.png) no-repeat left;}
.footer .wcont ul li a:hover {color:#ff7e20; text-decoration:none;}
.footer .wcont .twitter li {background:none; padding:5px 0;}
.footer .wcont .twitter li a {color:#fff;}

/* foot section */
.foot {font-size:10px; color:#ddd; text-transform:uppercase; background:url(../images/foot_bg.jpg) repeat; position:relative;}
.foot .foot_wrap {margin:0 auto; text-align:center; padding:35px 0;}
.foot a {color:#ddd;}
</pre><hr
/><h3>JS for our template</h3><p>Here are all necessary custom JS scripts</p><h4>js/script.js</h4><pre class="brush:js">
$(document).ready(function($){
    var conh = $('div.content').height();
    $(document).ready(function(){
        $('div.mid').css('height',conh);
        $('div.bottom').css('top',conh+174);
    });

    $('div.nav ul li').hover(function(){
        $(this).addClass('hover')},
        function(){
            $(this).removeClass('hover');
    });
});

var meteorslidessettings = {
    meteorslideshowspeed: &quot;2000&quot;,
    meteorslideshowduration: &quot;0&quot;,
    meteorslideshowheight: &quot;519&quot;,
    meteorslideshowwidth: &quot;1000&quot;,
    meteorslideshowtransition: &quot;fade&quot;
};
</pre><p>All other JS files (jquery.js, jquery.cycle.all.js and slideshow.js) available in package</p><hr
/><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #3 - demo 100" href="http://www.script-tutorials.com/demos/100/index.html" target="_blank" rel="nofollow">Live Demo</a></strong></h5><h5 style="text-align: center;"><strong><a
title="creating a HTML5 &#038; CSS3 single page template #3 - demo 100" href="http://www.script-tutorials.com/demos/100/source.zip" target="_blank" rel="nofollow">download result</a></strong></h5><hr
/><h3>Conclusion</h3><p>Congrats, our new template &#8216;Dark theme&#8217; is complete! You can use this as is, but please leave the back link intact. Don`t forget to say thanks <img
src='http://www.script-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div
class="shr-publisher-775"></div><div
id="main-related"><h4>Related Stuff You Will Love!</h4><ol
class="related-posts"><li> <a
href="http://www.script-tutorials.com/creating-new-layout-4-gray-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/109/thumb.png" alt="Creating new HTML CSS website layout #4 &#8211; Gray theme" /> <br
/> Creating new HTML CSS website layout #4 &#8211; Gray theme</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html-css-website-layout-5-anime-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/116/thumb.png" alt="Creating an Attractive HTML CSS Anime Theme Website Layout" /> <br
/> Creating an Attractive HTML CSS Anime Theme Website Layout</a></li><li> <a
href="http://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/" rel="bookmark"> <img
src="http://www.script-tutorials.com/demos/132/thumb.png" alt="Creating new HTML5/CSS3 single page layout &#8211; Art theme" /> <br
/> Creating new HTML5/CSS3 single page layout &#8211; Art theme</a></li></ol></div>]]></content:encoded> <wfw:commentRss>http://www.script-tutorials.com/creating-nice-clean-html-css-website-layout-3-dark-theme/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching using disk: basic

Served from: www.script-tutorials.com @ 2012-02-04 21:30:58 -->
