Thursday, January 17, 2008

Get Inspiration: Second Story Interactive Studios

Second Story is an interactive studio which produces stunning websites and other digital media

I discovered Second Story more than six years ago, during a travel to the islands Canarian. I found a link to Second Story site in a National Geographic Issue (august 2001 if I remember well...), dedicated to Pearl Harbor Attack. I remained very impressed for the high quality of its projects in terms of used technology, design and elegance. I think, if you take a look at its site, you can find inspiration and new ideas for your projects.


About Second Story


My favourite projects at Second Story
This is a small list of my favourite Second Story projects, in order of preference:

The Price of Freedom: Americans At War
11.2004 - National Museum of American History (Smithsonian Institution)

America on the Move

Forces of Nature

Wednesday, January 16, 2008

Statcounter user? Download official Wordpress plugin

Statcounter is a free yet reliable invisible web tracker, highly configurable hit counter and real-time detailed web stats.

I love Statcounter and I use it to track visits on my site. It's free, fast and simple. Now, for all Wordpress users, it's available the official Wordpress plugin.


Easy to install and very useful. More infos on Statcounter blog. Take a look :)

Tuesday, January 15, 2008

Table's anatomy: why tables are not so bad

Do you hate HTML tables? This article illustrates why tables are not so bad...

Yesterday, my friend Jason wrote me about this problem:
"I want to use CSS instead of a table to display a matrix with some values. How can I do?"

Using CSS, a simple way is to create a structure like this:


... and add a <div> element with a fixed size with inside <span> elements to design table cells. The result is:


Looks good. A nice CSS table 3 row x 3 columns. The HTML code is:

<div class="tc1">
<!-- Table header -->
<span class="header">2006</span>
<span class="
header">2007</span>
<span class="header">2008</span>
<!-- First row -->
<span>123</span>
<span>353</span>
<span>342</span>
<!-- Second row -->
<span>332</span>
<span>123</span>
<span>453</span>
<div style="clear:both;"></div>
</div>

...and CSS code is for example something like this:

.tc1 {
font-size:11px;
text-align:center;
width:153px;
clear:both;
height:1%;
border-right:solid 1px #DEDEDE;
border-top:solid 1px #DEDEDE; }
div.tc1 .header{
background:#FFFFCC; font-weight:bold;}
div.tc1 span{

height:30px;
line-height:30px;
padding:3px;
width:44px;
display:block;
float:left;
border-bottom:solid 1px #DEDEDE;
border-left:solid 1px #DEDEDE;
}

In his email, shortly Jason also said:

"I don't want to use tables because, CSS are good. Tables are bad."

Yes. It's true but this don't means tables don't be used. More exactly, it's a good rule don't use tables to design the page layout, but you can use them (such as in this case) to organize tabular data in a simpler way than using complex CSS structure.


Table Headings
You can use <th> tag to define table headers and define the header scope (row or column).
...HTML code is:

<table>
<tr>
<td> </td>
<th scope="col">2006</th>
<th scope="col">2007</th>
</tr>
<tr>
<th scope="row">Revenue</th>
<td>250</td>
<td>280</td>
</tr>
<tr>
<th scope="row">Total Cost</th>
<td>150</td>
<td>200</td>
</tr>
</table>


Styling Tables using CSS
If you have more then one table, you can define different styles using CSS and an ID attribute for each table you have (for example t1, t2, t3...):

<table id="t1">
...
<table id="t2">
...
<table id="t3">
...

CSS code can be something like this:

#t1 {
font-size:11px;
text-align:left;
border:solid 1px #DEDEDE; }
#t1 td, #t1 th{padding:4px;}
#t1 th{
background:#FFFFCC;}


Table Captions
Using tables, you can also add a short description using <caption> tag. <caption> tag must be placed immediatly after <table> tag and you can specify only one caption par table. The result is something like the following image:

Code to add a caption is very simple:

<table>
<caption> Table 1: Revenue and Costs</caption>
<tr>
<td>... </td>
</tr>
<tr>
<td>...</td>
</tr>
</table>


So, in general, tables are not the devil and if used in the correct way (not to design page layout!), can be more functional and simpler to design than CSS pseudo-alternatives.

Add Mixx button on Blogger template

Mixx.com is an useful site to share links and contents with your friends and it can help you to receive a big amount of traffic on your site. This short tutorial explais how to add a Mixx button on your Blogger template to share your stories directly from your site.



The result is a small button below each post:


Edit your Blogger template and check "Expand Widget Models". Find this line of code:

<p class='post-footer-line post-footer-line-3'>

... and paste the Mixx code. For a better result on Blogger, I changed the original code with the following code:

<img align='absmiddle' alt='Add to Mixx!' border='0' src='http://www.mixx.com/images/buttons/mixx-button4.png' style='margin-left:20px;'/>
<a expr:href='"http://www.mixx.com/submit?page_url=" + data:post.url'>
Mixx it!
</a>

Test your template and save it!


Add a retweet counter on your website with ReTweet.comAdd a retweet counter on your posts with TweetmemeHow to install Disqus comments into BloggerImprove the default comment system with Google Friend ConnectAdd TwitThis on your Blogger templateAdd Digg vote button on Blogger Template (update)Add delicious button with counter in your blogger postsPlace Google AdSense below post's title on BloggerAdd StumbleUpon button in your Blogger postsAdd reddit button with counter in your Blogger template Add Technorati blog reaction on your Blogger templateAdd DZone button on Blogger templateAdd Design Float button on Blogger templateSome Blogger Tips you probably don't knowAdd Yahoo! Buzz button on Blogger Template

Sunday, January 13, 2008

Digg-like navigation bar using CSS

Navigation bar with rounded corners an sliding doors technique for background images, Digg inspired.

This tutorial explains how to design a digg-like navigation bar using a liquid design with rounded corners for links.

The result is something like this:

Download this tutorial

Step 1: HTML page
Create a new HTML page and copy and paste the following code inside <body> tag:

<div id="topbar">
<a href="p1.html"><span>All</span></a>
<a href="p2.html" class="active"><span>News</span></a>
<a href="p3.html"><span>Video</span></a>
<a href="p4.html"><span>Images</span></a>
</div>
<div id="middlebar">
<a href="p1.html"><span>Technology</span></a>
<a href="p2.html"><span>World</span></a>
<a href="p3.html"><span>Science</span></a>
<a href="p4.html"><span>Gaming</span></a>
</div>

In the second link, "News", I added the class "active" (in bold). If you use URL variables and PHP to implement a dynamic navigation bar with some topics, if is defined an URL variable equal to "topic name" (in this case equal to "news") then add the attribute class="active" to the link. The code to implement this simple tip is very simple:

<?php if(isset($_GET['news'])){ echo 'class="active"';}?>


Step 2: rounded corners with liquid design for links
Before to start, I spend few rows to explain how to implement this simple effect using CSS. The typical way is using this simple structure:

...in HTML code:

<a href="mypage.html"><span>All</span></a>


Step 3: CSS file, #topbar
Create a new CSS file (style.css) and copy and paste the following code for #topbar element (remeber to link this file in your HTML page):

#topbar{
font-size:14px;
color:#3b5d14;
background:#b2d281;
font-weight:bold;
padding:6px;
overflow:auto;
height:1%;
clear:both;
}
#topbar a{
color:#3b5d14;
text-decoration:none;
margin:0 10px;
height:23px;
line-height:23px;
float:left;
display:block;
}
a.active{
height:23px;
line-height:23px;
background:url(pic/tb_a.png) right top no-repeat;
padding-right:10px;
}
a.active span{
background:url(pic/tb_span.png) left top no-repeat;
height:23px;
display:block;
padding-left:10px;
}



Step 4: CSS file, #middlebar
In the same CSS file (style.css), add the following code:

#middlebar{
font-size:11px;
color:#3b5d14;
background:#90b557;
font-weight:bold;
padding:6px;
overflow:auto;
height:1%;
clear:both;
}

#middlebar a{
color:#3b5d14;
text-decoration:none;
margin:0 5px;
padding-right:10px;
height:23px;
line-height:23px;
display:block;
float:left;
background:url(pic/mb_a.png) right top no-repeat;
}
#middlebar a span{
background:url(pic/mb_span.png) left top no-repeat;
height:23px;
display:block;
padding-left:10px;
}

Save and test the result!

Download this tutorial

Related posts

Saturday, January 12, 2008

Lightbox using mootools and pathfusion multibox

This tutorial explains how to use mootools and pathfusion multibox to implement a very nice lightbox on your website.

When an user clicks on a thumbnailed image, the script displays a big image preview in a window above all other page elements. The result is something like this:


You can download this tutorial using the following links which includes mootools framework and pathfusion script.

Download this tutorial


Step 1: include CSS and Javascript
Create a new HTML page and add the following code into <head> tag to link mootools and multibox script/css:

<link href="multibox.css" rel="stylesheet" type="text/css" />
<script language=""javascript" src="mootools.js">
<script language=""javascript" src="multibox.js">

Step 2: add thumbnail images
Now, in the <body> tag, add thumbnailed images using this code for each image:

<a href="my_image_1big.jpg" id="mb1" class="mb" title="Add here image title">
<img src="my_image_1.jpg" width="200" height="118" border="0"/>
</a>
<div class="multiBoxDesc mb1">
For each image, you can add a short description here...
</div>

...remember to change ID for each image link using a progressive number (mb1, mb2, mb3...) and the relative multiBoxDesc reference (in bold in the code above!).

Step 3: add the script
When you added all tumbnailed images you want, add below this few lines of code:

<script type="text/javascript">
window.addEvent('domready', function(){
new MultiBox('mb', {descClassName: 'multiBoxDesc'});
});
</script>

It's all! Save and try.

Download this tutorial


Resources
For other infos about this post take a look here:

Friday, January 11, 2008

Blogger Hack: add social buttons to increase your traffic

If you have a blog, the most simple way to increase your traffic is using Social Networks.

Every time you add a new post on your blog, I suggest you to take some minuts to promote it on sites like Digg, Technorati, Reddit, StumbleUpon ad delicious to increase quickly your traffic.



Take a look at the following list of links to add your preferred buttons on your Blogger template:

Add Digg vote button on Blogger Template (update)
Add Yahoo! Buzz button on Blogger Template
Add Technorati blog reaction on your Blogger Template
Add Reddit button with counter in your Blogger Template
Add StumbleUpon button in your Blogger posts
Add delicious button with counter in your blogger posts
Add Mixx button on Blogger template
Add DZone button on Blogger template
Add Design Float button on Blogger template

They can help you to attract new readers and increase popularity of your blog.