I have centered a lot of stuff in my webdevelopment career, but I was wondering if there is a simple way to centering an image vertically without knowing the image\'s dimens
You could use this CSS on your parent:
#parent { display:table-cell; vertical-align:middle; }
Note that this will make the parent element behave like an inline element.
Example.