Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using css to align <td>

Status
Not open for further replies.

wazilian1

Programmer
Nov 8, 2002
38
US
how can i use CSS to align the text in a <td> tag. i've used the following...

td {
text-align: right
}


...but it doesn't work. i've tried everything. can anyone help? thanks in advance. wazilian
King of Wazil
 
have you set a width to the cells? I've noticed sometimes if the width is too constraining to the text the alignment will not work properly
example
this
<td width=50>heading</td> will result in the text to the right
but
<td width=100>heading</td> will set to the center
with your style spec's I dare to learn more
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top