Center align an absolute element using css (Vertically and Horizontally)

Just try following code –

position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 20%;
height: 20%;

Adjust width and height as needed. Super trick!


Virtual Hosts in Windows, Linux, Mac for developer

Virtual hosting is a method for hosting multiple domain names on a computer using a single IP address. One widely used application is shared web hosting. Beside this, It is very usefull to developer while developing his site locally or in dedicated server. Let’s me explain –
Continue reading

My Wishlist for 2010

1. Want to be father 😳
2. Zend PHP5 Certification
3. Get a Macbook Pro 15 inch  (Bought 13” instead)
4. Get a Nikon D90


List-Unsubscribe email header

If you are sending newsletter regularly, you always put a link in your template to named “To unsubscribe from this mailing link – click here” such that user can unsubscribe himself by following the unsubscribe link. A new header is introduced to have this facility on header.
Continue reading


Sardarji Jokes

Sardarji jokes are a class of jokes based on stereotypes of Sikhs. Although jokes on several ethnic stereotypes are common in India, the Sardarji jokes was one of the most popular and widely circulated ethnic jokes in India. Sardarji jokes are considered as tasteless and inappropriate by many.,prtpage-1.cms

But I am a Big fan of Sardarji jokes. Here are few that i like –
Continue reading