Centering a div block without the width using pure CSS (All Browser)

Easiest way to centering a div using pure CSS

The trick to center the div is to shift the outer and inner div, with the use of position:relative and display:block. Shift the outer block 50% left relative, and then next is to move the inner block back to -50% left. Hope this make sense. This code will work on all browser.

Continue Reading »

  • Page 1 of 1
  • 1