How do I vertically and horizontally center an image when I do not know the size of it? I asked this question and someone suggested using a table. This isn\'t the first time
DON'T USE TABLES. Terrible practice unless your using tabular data.
The best way to do this is with the following code.
This will work as long as it is not inside any elements without static positioning. All containing elements must be static positioning which is the default anyway.