center the contents within the TD?
To center the contents, just apply a style to the TD element that says "text-align: center". The TD expands to the width of the TR, so the TD can't be centered unless you set it to a fixed width.
~Sovereign
Greetings,
I wrote a pgm to build a HomePage of DropDownMenu Links.
But I can't yet get the CENTERing html right.
The code below is for two DropDowns per <tr>.
But usually it is more DropDowns per <tr>, and many ROWs.
So, How can I CENTER <td>s within <tr>?
Thanks...vmars316 (win7 home premium)
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
<tr><td width="200" height="28">
<!-- <form name="Best_COLOR_Sites"> --> <!-- rgb(250,240,255) -->
<select style="width:200px; font:14px Arial Black; color:rgb(0,0,0); background-color:rgb(231,169,126);" name="menu" onchange="location=this.options[this.selectedIndex].value;">
<option selected="selected" value="">Best_COLOR_Sites</option>
<option value="http://kuler.adobe.com/">Adobe colors schemes themes</option>
<option value="http://colorschemedesigner.com/">Best Color Tool Schemes</option>
</select>
</td><td width="200" height="28">
<!-- <form name="Bible_related"> --> <!-- rgb(250,240,255) -->
<select style="width:200px; font:14px Arial Black; color:rgb(0,0,0); background-color:rgb(231,169,126);" name="menu" onchange="location=this.options[this.selectedIndex].value;">
<option selected="selected" value="">Bible_related</option>
<option value="http://www.biblegateway.com/versions/">50 Bible VERSIONS</option>
<option value="http://www.biblesforamerica.org/CommentsAndQuestions.aspx">BFA Comments & Questions</option>
</select></td></tr></table>

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic