Shel <si************@netaccess.control.com> writes:
Sorry to bother you; in the below test, <SPAN> doesn't do the text
alignment. What's wrong? Using Opera 7.50 for Windows.
text-align only applies to block elements - span is not a block element.
<P>regular text
<span style="text-align:center">text-to-center</span>
</p>
Options:
<p>regular text</p>
<p style='text-align: center'>text-to-center</p>
or
<p>regular text
<span style='text-align: center; display: block;'>text-to-center</span>
</p>
depending on whether the text being centred is logically part of that
paragraph (2nd option) or not (1st option, probably more likely in
most cases)
--
Chris