March 12th, 2011

Horizontal and Vertical Center [CSS snippet]


/* Horizontal Center */
#horizontalcenter {
    width: 400px; /* Change this to your container width */
    margin: 0 auto;
}
/* Vertical Center */
#verticalcenter {
    position: absolute;
    top: 50%;
    height: 400px; /* Change this to your container height */
    margin-top: -200px; /* This should be half your container height */
}

March 12th, 2011

CSS Clearfix [CSS snippet]

November 23rd, 2010

My vimrc file [Vim Tips]

August 20th, 2010

How to split a string? [C/C++ snippet]

August 20th, 2010

Number Format – Thousand Separator [C/C++ snippet]

...or look at the Archives