...

View Full Version : Text not centering



dotancohen
08-18-2005, 12:36 PM
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 Cohen

Bill Posters
08-18-2005, 12:45 PM
Try moving the style attributes to the parent td and ditching the span.

mrruben5
08-18-2005, 01:29 PM
Span is an inline element. If you want to center text try it a paragraph, paragraph is a block element.

<td colspan="2"><p style='text-align: center; font-weight: bold; font-size: medium;'>Where to go now?</p></td>

Or just do what Bill posters said :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum