Posted by Andy Dingley on 01/11/07 11:48
Johnny wrote:
> Do you mean that if an inline element is contained in a block element,
> the "text-align" won't take effect?
How could it? What does "alignment" mean to something that's inline
and thus doesn't have the right sort of "box" to align things into? You
might think about it as the inline elements being rendered "inside" the
content after alignment has been applied to it. They're too late to
change alignment, that has already been worked out.
You probably need to use two block elements here (<p> or <div>). Then
to add a float to keep them on the same line.
This is just the vague hand-waving version of course and Jukka will
probably swoop down out of his tree in a minute to criticise our
incorrect punctuation and bad taste in shirts. _Sometimes_ he posts a
useful explanation too, but sadly rarely.
Navigation:
[Reply to this message]
|