Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

very simple center question

0 views
Skip to first unread message

James

unread,
May 30, 2003, 9:55:44 PM5/30/03
to
I have a td with three lines of text, each separated by a br. I want the
last line to be centered in the td. In the old days, I would just use
center /center tags (which is what I'm currently using and it works fine).
However, my authoring tool is suggesting that w3c considers this outdated
and it wants me to get into this century. I tried putting a span
style="text-align:center" wrapping the text, but this didn't work. I can't
change the align attribute of the td to center because this centers ALL the
text and I want the first two lines to be left justified. Can someone tell
me what the modern day equivalent to the center tags are for this scenario?


Topspin

unread,
Jun 3, 2003, 4:57:14 PM6/3/03
to
"James" <capr...@nospam.com> wrote in message
news:eL2iAfxJ...@TK2MSFTNGP10.phx.gbl...

try
<span style="width:100%; text-align:center;">my text</span>

or
<span style="width:100%; text-align:center; display:block;">my text</span>

or
<div style="width:100%; text-align:center;">my text</div>


Scott McNair

unread,
Jun 4, 2003, 11:43:49 AM6/4/03
to
"James" <capr...@nospam.com> wrote in
news:eL2iAfxJ...@TK2MSFTNGP10.phx.gbl:

<td>
This is my first line of text<br>
This is my second line of text<br>
<div style="text-align:center">This is my third line of text</div>
</td>

0 new messages