Liquid 3 column css layout

Lets see how to make a flexible liquid 3 column css layout with header and footer.

If you want to set a maximum width on your main content, you can do this by adding a new rule: "#content { max-width: 36em; }".

Although IE browsers will ignore the rule, other standards compliant browsers will not allow the content area to go wider that 36em - keeping the line length to a comfortable width.

CSS CODE
#container
{
width: 90%;
margin: 10px auto;
background-color: #fff;
color: #333;
border: 1px solid gray;
line-height: 130%;
}

#top
{
padding: .5em;
background-color: #ddd;
border-bottom: 1px solid gray;
}

#top h1
{
padding: 0;
margin: 0;
}

#leftnav
{
float: left;
width: 160px;
margin: 0;
padding: 1em;
}

#rightnav
{
float: right;
width: 160px;
margin: 0;
padding: 1em;
}

#content
{
margin-left: 200px;
border-left: 1px solid gray;
margin-right: 200px;
border-right: 1px solid gray;
padding: 1em;
max-width: 36em;
}

#footer
{
clear: both;
margin: 0;
padding: .5em;
color: #333;
background-color: #ddd;
border-top: 1px solid gray;
}

#leftnav p, #rightnav p { margin: 0 0 1em 0; }
#content h2 { margin: 0 0 .5em 0; }


HTML CODE
<div id="container">
<div id="top">
<h1>Header</h1>
</div>
<div id="leftnav">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.
</p>
</div>
<div id="rightnav">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.
</p>
</div>
<div id="content">
<h2>Subheading</h2>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</p>
<p>
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</p>
</div>
<div id="footer">
Footer
</div>
</div>

Liquid two column layout

Lets see how to make a flexible 2 column layout with header and footer.

If you want to set a maximum width on your main content, you can do this by adding a new rule : "#content { max-width: 36em; }".

Although IE browsers will ignore this rule, other standards compliant browsers will not allow the content area to go wider that 36em - keeping the line length to a comfortable width.

CSS CODE
#container
{
width: 90%;
margin: 10px auto;
background-color: #fff;
color: #333;
border: 1px solid gray;
line-height: 130%;
}

#top
{
padding: .5em;
background-color: #ddd;
border-bottom: 1px solid gray;
}

#top h1
{
padding: 0;
margin: 0;
}

#leftnav
{
float: left;
width: 160px;
margin: 0;
padding: 1em;
}

#content
{
margin-left: 200px;
border-left: 1px solid gray;
padding: 1em;
max-width: 36em;
}

#footer
{
clear: both;
margin: 0;
padding: .5em;
color: #333;
background-color: #ddd;
border-top: 1px solid gray;
}

#leftnav p { margin: 0 0 1em 0; }
#content h2 { margin: 0 0 .5em 0; }


HTML CODE
<div id="container">
<div id="top">
<h1>Header</h1>
</div>
<div id="leftnav">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.
</p>
</div>
<div id="content">
<h2>Subheading</h2>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</p>
<p>
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</p>
</div>
<div id="footer">
Footer
</div>
</div>

Floating capital letter

This tutorial shows you " How to float a first capital letter along the text or paragraph ".

Float a scalable capital letter to the left, resize it and adjust line-heights to suit your needs.

To make the capital letter line up with the text alongside, set the line-height. In this case, around 83% seems to work. Like the font-size, these figures can be adjusted to suit your own needs.

CSS CODE
.dropcap
{
float: left;
width: .7em;
font-size: 4em;
line-height: 83%;
}

HTML CODE
<p>
<span class="dropcap">L</span>orem ipsum dolor sit amet, consectetuer...
</p>

Floating inline list items

This is tutorial tells how to float a simple list, converting it into a horizontal navigation bar. How to make a horizontal navigation bar using css float.
Using this tutorial you can easily make a horizontal floating navigation bar using list for your website that floats on top or bottom of your web page.


CSS CODE
ul#navlist
{
padding: 0;
margin: 0;
list-style-type: none;
float: left;
width: 100%;
color: #fff;
background-color: #036;
}

ul#navlist li { display: inline; }

ul#navlist li a
{
float: left;
width: 5em;
color: #fff;
background-color: #036;
padding: 0.2em 1em;
text-decoration: none;
border-right: 1px solid #fff;
}

ul#navlist li a:hover
{
background-color: #369;
color: #fff;
}

HTML CODE
<ul id="navlist">
<li><a href="http://www2.blogger.com/post-edit.g?blogID=1991891025713771863&postID=4885604026708059279#">Item one</a></li>
<li><a href="http://www2.blogger.com/post-edit.g?blogID=1991891025713771863&postID=4885604026708059279#">Item two</a></li>
<li><a href="http://www2.blogger.com/post-edit.g?blogID=1991891025713771863&postID=4885604026708059279#">Item three</a></li>
</ul>
</code>

How to promote your blog

With the growing interest in blogging as a means of online promotion and branding, lot of marketers are starting blogs to promote their opinions, products, books and services.

Now the question : "How do I promote my blog", "How do I build traffic to my blog", "What are blog promotion tools and secrets" and so on.

To promote your blog first you need to understand few things :

Blogs and blog posts are naturally search engine friendly because they are text-rich, link-rich, frequently-updated webpages that use stylesheets or CSS, and have very little extraneous HTML. Blogs are natural SEO tools but you have to make them work for you.

Content is King. A good and search engine friendly content is the one that is well written, keyword rich, relevant and that has targeted Post Title. First you need to understand what does most users search for the topic that you are writing on. Lets take some examples from this blog only, see the topics "How to promote your blog" and " How to earn from a blog "
Now just imagine that if you have a blog and want to promote it or want to earn from it what would you type in the search engine. Different people have different search habits, but you have to see it in general and select a topic that can have multiple keywords.

Blog Often. Blogs are frequently updated and blog content is characteristically more relevant, topical, and fresh. For this reason blogs gets crawled more frequently, indexed much faster, and updated much more quickly. The search engine spiders will literally adjust their frequency with which they check crawl your site based on how frequent you update.

RSS stands for Really Simple Syndication. To keep things simple you should realize that RSS is a standard for content subscription and distribution. You need to submit your blog and RSS URL to blog and search engine directories and update your content frequently. Spider bots crawl your RSS feed quickly and often to find your content. When your content is keyword rich for your topic or niche than you RSS feed is keyword making it attractive to the search engines.Promote your feed, make sure your content is relevant and rich and grow your traffic.







Now join some good online ad networks and sprinkle the ads over your post and Voila !!! there you go.

Earning from Gaming website

Online gaming industry is booming by leaps and bounds.

Many new online gaming websites are mushrooming all over with a single aim of earning money from online games.
The obvious questions that linger in the mind of webmasters of these gaming websites are "How to make money from online games website ?" , "Which are the best online games affiliate programs ?", "How to sell games from your website ?", "Which are the best selling games ?" and so on.

Well, even I was one of them, so I thought let me find as many answers as I can about this online gaming industry and post them here so that webmasters of other gaming websites can also benefit.

I will keep updating the list so please keep checking back.

The best games affiliate program I found today is My Game Space

View below the iframe they provide for gaming website. This keeps updating with new games and reviews. It is a subsidiary of BigFishGames

How to earn from a blog

Most common questions new bloggers ask is "Can I earn from my blog" , "How much money can I make from a blog that has x number of page views per day or month" and finally "How can I earn effectively from my blog".

On one hand these are valid questions to ask - after all if you’re going to put time and energy into building something, its natural to expect some rewards.

On the other hand - these are nearly impossible question to answer because there are so many factors to take into consideration.

If you follow few simple steps earning from a blog is easy.

Factors that Contribute to a Blog’s Earnings


Topic of your blog : Three different blogs with same amount of traffic can have totally different earning capacity if they specialize in different topics.
I have 3 blogs A with that specializes in topic X, B in topic Y and C in topic Z having around 30000 page views in a month with around 12000 unique visitors. All these blogs make different amount of money.
Blog A earns around $500 - $700
Blog B makes around $200
Blog C is earning lowest amount of money - just over $70


* Blog A has a pretty specialized topic that not many would be too interested in. On the other hand, it has well paying ads on a pay per click basis and triggers ads that are very relevant to the topic. As a result this blog earns good money.

* Blog B has a very popular topic but there are very few advertisers interested in buying ads with those keywords in contextual ad systems. As a result it’s Click Through Rate (CTR) is very low and click values are low also. This blog can only generate big money if it has huge traffic.

* Blog C is on a very general topic that already has been covered by many websites, which doesn’t convert brilliantly in contextual ads in terms of CTR and ad value.

Why Topic Matters for a blog

* Contextual Ads - Different topics and keywords within topics will trigger different ads in contextual ad programs and as a result will earn different levels ‘per click’.
* Affiliate Programs - Similarly, different topics will open up different levels of earnings when it comes to affiliate programs. For example a blog about books that uses the Amazon program is only ever likely to make small commissions per sale as the average book might only be worth $20 and the commission with Amazon is generally in the 5-8% range. On the other hand I know of publishers in the financial website game who use affiliate programs that can pay out at $100 per sale.
* Indirect Methods - Obviously different opportunities (with different income earning potential) arise for bloggers with a profile in different niches. For example a blogger known for his movie review blog might not have much demand for consulting work but could find a way to syndicate his blog to magazines or newspapers. A blogger with a good profile in the PR industry might not get picked up as a writer in magazines but could land himself a well paying job or some consulting work.

How old is your Blog : - a good wine matures with age - as do many profitable blogs.
Here are few reasons why blogs tend to get better with age:

* Quantity and Quality of content - Don’t expect to get a lot of traffic to your blog until you have a substantial level of quality content in your archives.

* Search Engine Optimization - Sustaining high rankings means building a site over time. Climbing the rankings in SE’s is the result of many things including good content (lots of it) that gets links from others - both things that take time.