I have noticed that many of the designers design a great looking layout but they fail in the coding part. I have seen big companies code like a kid who has just learnt basics of HTML and some WYSIWYG editor.
Some of the pointers in this guide will help you to make your code beautiful. Yes, I mean it…
1. Use CSS based layers for the layout and use tables only for tabular data: I have seen many big the companies / designers using tables to code the layout. Tables will just help you to increase the lines of codes. Let me explain it by giving an example:
Table based sample code CSS based sample code
Table Based Code:
-
-
<table CLASS="" BORDER="0" WIDTH="500" CELLPADDING="0" CELLSPACING="0">
-
<tr BGCOLOR="#ffffff">
-
<td CLASS="" STYLE="width: 100px">Home</td>
-
<td CLASS="" STYLE="width: 100px">About us</td>
-
<td CLASS="" STYLE="width: 100px">Products</td>
-
<td CLASS="" STYLE="width: 100px">Feedback</td>
-
</tr>
-
</table>
-
CSS Based Code:
-
-
<ul>
-
<li>Home</li>
-
<li>About us</li>
-
<li>Products</li>
-
<li>Feedback</li>
-
</ul>
-
Now in this simple example, there is not much of difference in the number of lines (since it is a very simple piece of code) but what mainly differ here is number of attributes which are simply not needed for such a small thing. We can just define display:inline style in CSS for list and specify the padding to give the same output.
To check some live examples you can take a look at the code of these sites that I have coded, you will notice that the number of lines are less than 100 in the code. If I wanted to implement the same layout in table based layout, it would have taken more than 100 lines. So I can say that I saved 100 lines by using CSS.
But again I am not saying that you should not use tables at all, tables are needed to display tabular data.
Read the rest of this entry »
Note: This Search Engine Optimization Tutorial for Newbies…
Well, before starting this, I want to make one thing clear, this is total basic tutorial which makes you understand the basics of Search Engine Optimization (SEO), search engine optimization is more than page optimization, it depends on many factors like link building, quality of incoming links etc…
So let’s start with the basic….
What is search engine optimization?
It’s a magic which no one can understand, kidding
It is a simple logic which any kid can understand….
It works like this: for a human being, to become popular he needs to do something extra ordinary so that whole world can know about it and he becomes known face in the world from nowhere
So same logic applies for websites also, to make your website popular first you need to do something good so that other people know about it, for example: you have a genuine site with good content and once people know about it they talk about the site (provide links, give your site links in forums, sites, blogs etc…
So search engine optimization is a process of taking something extra ordinary out of your site and let the whole world know about it, it’s kind of makeover for your site.
Now to make your site known to public you will have to do few things on your site….so let me start explaining things one by one in short…
Following things are important part of your site and are helpful for your ranking….
Read the rest of this entry »
How to backup email accounts in Microsoft Outlook 2003?
This question was bugging me like hell when I was taking backup of my outlook data today.
I took backup of all the folders, rules but I could not find any option to take backup of email accounts.
I googled for quite some time but could not find anything…
I knew there was a registry key for this but it wasn’t so easy to find….
after digging the net / google for more than 30 minutes, I finally found the way to do it…
Just locate the following key in registry (start – run – regedit):
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook
Then right click on the key, outlook and select option, Export…save it anywhere you want…
and run it while restoring your outlook.
This will restore your old outlook profile with all email accounts and rules.
But, you will have to enter passwords for the accounts again. It does not store the user passwords.
I hope this helps people like me..who are lazy to create the email accounts again…
This might help the ones who are trying to figure out how to make a store front for their Directi Domain name reseller account
Let me explain in few simple step..
Directi Part:
- First, Log on to your directi resller account panel
- From menu on the top – Go to Settings – Branding – Storefront & Control Panel – URL
- Add your subdomain under “Branded Urls ” option (Change “Partially Branded Primary Url” if you wish to) For example. if you want domains.example.com should show directi control panel then put that in Main URL box
Part 1 Done…
Read the rest of this entry »
One of my resellers wanted 2 different IPs for his name servers.
I googled about it, did not find proper info so finally I got it working with help of one my friends.
Here is the way to do it…
- Make sure that you have 2 IP Addresses free
- Go to EDIT A DNS Zone from DNS Functions in WHM
- Select the site / username of the reseller
- In that add 2 new entries, for example: ns1.resellerdomain.com A xx.xx.xx.xx & ns2.resellerdomain.com A xx.xx.xx.xx (replace xx.xx.xx.xx with your IP Address)
- Confirm everything once, save those entries
- Now click on Reseller Center from option Reseller
- Click on Edit Privileges/Nameservers
- Add those name servers in Primary and Secondary Nameserver box (Don’t click on Assign IP Address or Add and entry for this name server)
- Click on Save
That’s it…all done