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!


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