Mark Lundquist wrote: > On Jan 12, 2007, at 3:12 PM, david wrote: > >> Diane Ross wrote: >>> I don't know what I'm doing wrong. When I want to center an image I >>> can only >>> get it to work if I select <div align="center">. If I use a class >>> >>> .txtcenter, .center { text-align: center; } >>> >>> Or #test img { text-align: center; } the image does not center. >> >> Because an image is not text. > > Hmm, not quite... text-align affects images in exactly the same way as > it affects text or any other inline element.
My understanding is, no, text-align is only supposed to align text. The fact that IE6 also aligns images when you use it is wrong. But what would I know? -- David [EMAIL PROTECTED] authenticity, honesty, community ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/