1

I haven't set a height to the body - I just want the wrapper to automatically vertically center within the body. Any help would be greatly appreciated.

ThinkingStiff
  • 62,391
  • 29
  • 139
  • 237
Double D
  • 23
  • 2
  • What `position` are you using? absolute/relative/fixed ? what kind of width? % or px ?? Would need more info .... – d-_-b May 08 '12 at 01:52

1 Answers1

0

You can use a couple wrapping <div> elements and using display: table, display: table-cell, and vertical-align: middle.

jsFiddle

Jesse
  • 3,765
  • 1
  • 15
  • 9