How to vertically center a inside a div?

See my article on understanding vertical alignment There are multiple techniques to accomplish what you want at the end of the discussion (Super-short summary: either set the line-height of the child equal to the height of the container, or set positioning on the container and absolutely position the child at top:50% with margin-top:-YYYpx YYY being half the known height of the child. ).

See my article on understanding vertical alignment. There are multiple techniques to accomplish what you want at the end of the discussion. (Super-short summary: either set the line-height of the child equal to the height of the container, or set positioning on the container and absolutely position the child at top:50% with margin-top:-YYYpx, YYY being half the known height of the child.).

1 +1 for not using a table. – Blender Dec 5 '10 at 4:18 @Blender Heh, though therein references a third option: display:table-cell; vertical-align:middle (along with a display:table-row parent). :) But no, you can be sure that I would never advocate using HTML table elements for layout.

– Phrogz Dec 5 '10 at 4:19 what happens if you padding-top? A fixed no based on height of the parent. I think your solution works even if the height is dynamic right.

– kobe Dec 5 '10 at 4:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions