Wed, 2006-05-10 10:11
quick beginner's question
what is the best way to vertically and horizontally center an img within a div? I've tried using text-align and vertical-align, but they don't seem to be having any effect.
Wed, 2006-05-10 10:20
#1
[Solved] img alignment
The simplest way, since IE does not support css2, is to use a single celled table. See the demo, http://garyblue.port5.com/webdev/vcenter2.html
cheers,
gary
Wed, 2006-05-10 12:02
#2
[Solved] img alignment
That did the trick. Cheers, Gary