I can horizontally align a div and all the content looks nice. Looking to vertical align a div that does not contain any tables. I tried setting margin positions to some neg
There are a few ways to do this, all with compromises.
position:absolute, a fixed height, and overflow:auto.display:table, display:table-cell, and vertical-align:middleI think option #2 is pretty good.
edit: I don't think option 2 will work in IE. You may be stuck with javascript if you want to keep the height dynamic.