Click to See Complete Forum and Search --> : Bold, but not centered


dotancohen
08-18-2005, 06:28 AM
I have a table, that one of the td's looks like this:
<td colspan='2'><span style='text-align: center; font-weight: bold; font-size: medium;'>Where to go now?</span></td>

The text comes out bold, and medium, but not centered. The URL is:
http://www.lyricslist.com/lyrics/artist_albums/108/carey_mariah.php
But I warn you, it's a long page and the text is at the bottom!

Dotan

the tree
08-18-2005, 06:30 AM
That is because you cannot center text within an inline element. You can either make the span act as if it were a block level element (display: block;) or apply the centering atribute to the table cell.

dotancohen
08-19-2005, 07:54 AM
I understand. The style='text-align: center;' should belong to the td, not to the span. Thanks.

Dotan
http://technology-sleuth.com