Centering Text in Table in IE6

G

Guy Noir

Hello all.

I have a need to display text over a checkbox item and have the 2
centered.
I'm strugggling a bit with IE6 (Works fine in Firefox)

<table id="generatedIpAddressTable" cellspacing="0" cellpadding="0"
border="0"
style="border-width:2px;border-style:Inset;border-collapse:collapse;">
<tr style="border-width:2px;border-style:Dashed;">
<tr style="border-width:2px;border-style:solid;">
<td align="center" style="width: 5px">
<span id="lbl128a" align="center">1</span><input
id="chk1" type="checkbox" name="chk1" />
</td>
</tr>
</table>


The number 1 in the <span> is left justified, while the checkbox is
centered.

(I have to use the span....it's auto generated by my backend)

Can someone point me to a way to have these centered, one over the
other in one table cell?

Thanks much in advance for sharing your expertise.

-Guy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top