Friday, November 21, 2008

Centering: Auto-width Margins

By setting its right and left margin widths to "auto", it will make the content box horizontally centered. This is the preferred way to accomplish horizontal centering with CSS, and works very well in most browsers with CSS2 support.

Unfortunately, IE5/Win does not respond to this method. The workaround is to set the text-align to center.

Margin example:

h1 {margin: 10px}
all four margins will be 10px

h1 {margin: 10px 2%}
top and bottom margin will be 10px, left and right margin will be 2% of the total width of the document.

h1 {margin: 10px 2% -10px}
top margin will be 10px, left and right margin will be 2% of the total width of the document, bottom margin will be -10px

h1 {margin: 10px 2% -10px auto}
top margin will be 10px, right margin will be 2% of the total width of the document, bottom margin will be -10px, left margin will be set by the browser

Thursday, November 13, 2008

Host File

The short answer is that the Hosts file is like an address book. When you type an address like www.yahoo.com into your browser, the Hosts file is consulted to see if you have the IP address, or "telephone number," for that site. If you do, then your computer will "call it" and the site will open. If not, your computer will ask your ISP's (internet service provider) computer for the phone number before it can "call" that site. Most of the time, you do not have addresses in your "address book," because you have not put any there. Therefore, most of the time your computer asks for the IP address from your ISP to find sites.

Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts

For more info, go to HERE

Wednesday, November 12, 2008

Open Command Window Here

One of Microsoft's Power Toys. This PowerToy adds an "Open Command Window Here" context menu option on file system folders, giving you a quick way to open a command window (cmd.exe) pointing at the selected folder.

Launchy

Launch the application without using mouse.

Alt+Space to bring the Launchy to front. Type the name of the executable, it will show the matching list while you are typing. Press Enter when you done and application will launch. It is open source and FREE.

http://www.launchy.net

Tuesday, November 11, 2008

Address Completion in Browsers

IE: type the site address between the "www." and ".com" and then use Ctrl+Enter to auto-complete the "www." and ".com"

Sunday, November 02, 2008

SQL 2005 installation

I always run into problem with installation of SQL 2005. Here is step by step guide:

http://sequelserver.blogspot.com/2007/06/20070703sql-server-2005-installation.html