To center a div in CSS you can use the following snippet.
Sample CSS
#divID { width: 300px; /* width you need */ height: 150x; /* height you need */ position:absolute; left:50%; top:50%; margin-left:-150px; /* half the width */ margin-top:-75px; /* half the height */ }
RT @CodeSnippetsNET: How to center a div in #CSS http://t.co/8GHWCm2EQa #html #php #js #javascript #jquery #programming #code #dev
RT @CodeSnippetsNET: How to center a div in #CSS http://t.co/8GHWCm2EQa #html #php #js #javascript #jquery #programming #code #dev