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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

align tables 1

Status
Not open for further replies.

amiw

Programmer
Apr 1, 2003
113
GB
Rather than use the attribute align which is deprecated I would prefer to use CSS.
What would I put in my stylesheet to center the table?

<div align="center">
<table>
<tr>
<td>content goes here
</td>
</tr>
</table>
</div>


Secondly how would I center the table and at the same time keep the text aligned to the (default) left?

thanks..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top