“CSS3_photo_two” Template Documentation

Template version: 2.0
Created: March 27th 2012

Thank you for downloading this template.

This template is released under a Creative Commons Attribution 3.0 Licence. This means you are free to download and use it for personal and commercial projects. However, you must leave the 'design from css3templates.co.uk' link in the footer of the template.

If you have any questions that are beyond the scope of this help file, please feel free to contact me via my website. Thank you!


Table of Contents

  1. HTML Structure
  2. CSS Files and Structure
  3. Fonts
  4. JavaScript
  5. Sources and Credits
  6. Image Fader

A) HTML Structure - top

Here is the HTML structure for this template.

<!DOCTYPE html>
<html lang="en">
<head>
  <!-- Header Metatags -->
  <!-- Main Stylesheet -->
  <!-- Modernizr JS Enables HTML5 Elements -->
</head>
<body>
  <div id="main">
    <!-- begin header -->
    <header>
      <div id="logo"</div>
      <nav>
        <!-- menu -->
      </nav>
    </header>
    <!-- end header -->
    <!-- begin content -->
    <div id="site_content">
      <div class="gallery">
        <ul class="images">
          <li class="show"><img src="images/1.jpg" width="950" height="300" alt="photo_one" /></li>
          <li><img src="images/2.jpg" width="950" height="300" alt="photo_two" /></li>
          <li><img src="images/3.jpg" width="950" height="300" alt="photo_three" /></li>
        </ul>
      </div>
      <div id="sidebar_container">
        <div class="sidebar"></div>
      </div>
      <div class="content"></div>
    </div>
    <!-- end content -->
    <!-- begin footer -->
    <footer></footer>
    <!-- end footer -->
  </div>
  <p>&nbsp;</p>
  <!-- jQuery with plugins -->
  <script type="text/javascript">
    $(document).ready(function(){
      <!-- initialise sooperfish menu -->
      $('ul.sf-menu').sooperfish();
    });
  </script>
</html>
</body>
    

B) CSS Files and Structure - top

There is one stylesheet used in this theme:

  1. css/style.css
  1. style.css is the main stylesheet and is included in all pages. It contains all the structural stylings for the template.

C) Fonts - top

There are 2 fonts used in this theme. The fonts are Yanone Kaffeesatz and News Cycle. The font files are

  1. fonts/YanoneKaffeesatz-Regular.ttf
  2. fonts/YanoneKaffeesatz-Regular.eot (IE Specific)
  3. fonts/NewsCycle-Regular.ttf
  4. fonts/NewsCycle-Regular.eot (IE Specific)

D) JavaScript - top

This theme imports several Javascript files.

  1. js/modernizr-1.5.min.js
  2. js/jquery.min.js
  3. js/jquery.easing-sooper.js
  4. js/jquery.sooperfish.js
  5. js/jquery.image_fade.js
  1. modernizr is a Javascript library that enables HTML5 elements and feature detects.
  2. jQuery is a Javascript library containing lots of commonly used Javascript functions.
  3. Easing sooper is a jQuery plugin for easing transitions, optimised for the Sooperfish drop-down menu.
  4. Sooperfish is a jQuery plugin for the drop-down menu.
  5. Image fade contains the functions for the gallery image fader.

E) Sources and Credits - top

I've used the following images, icons or other files as listed.


F) Image Fader - top

The image fader has the following format:

<li><img width="950" height="450" src="images/image_name.jpg" alt="image one" /></li>
    

To add an image to the image fader simply add a new list item (li) to the unordered list (ul) with class="images". You need to specify the width of the image, the height of the image, the src and an 'alt' for the image. If you would like the image to hyperlink to another page, simply add an <a></a> around the <img> tag.

NOTE: Remember to put 'class="show"' on the first <li> in the list, so that the image fader knows which one to start with.


Once again, thank you for downloading this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist.

Go To Table of Contents


Once again, thank you for downloading this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist.

Go To Table of Contents