Previous Message
Next Message

Centering images

Sent by david on 13 January 2007 21:09

Mark Lundquist wrote:

> On Jan 13, 2007, at 12:50 PM, david wrote:
>     My understanding is, no, text-align is only supposed to align text.
> That's incorrect; see
> "This property describes how inline content of a block is aligned [etc...]
> All of this section is worded in terms of "inline content" or "inline 
> boxes", not text /per se/.

Then the W3C's choice of "TEXT-align" is a bad choice. It specifies 
"text" when it's really talking about something broader than what people 
think of as text.

Something like horizontal-align would make more sense to me, or align-x 
to parallel the repeat-x, repeat-y values for background images.

>     The fact that IE6 also aligns images when you use it is wrong.
> Who said anything about IE? :-)

Nobody did, but the original poster didn't specify any browser at all. 
I've quite often seen people do that when they use IE because they think 
everyone uses IE.

> All browsers do it, and it's not wrong!
> Now, what IE does do wrong is that it also centers block content within 
> a container that has 'text-align: center'. This may be what you are 
> thinking of.

Yah, that's what I was thinking of.

authenticity, honesty, community
css-discuss [EMAIL-REMOVED]]
IE7 information --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread:

Possibly related: