Click to See Complete Forum and Search --> : Aliging Comboboxes in a Table


Raja
09-12-2002, 05:10 PM
Hi all,
I am trying to display combo boxes populated from an MS Access database
in a table .The problem is each combox in a different cell is getting displayed
with a different size which seems to be the size of the value of that field.
Can anyone tell me how to align these comboboxes in different cells to be
of the same size irrespective of the size of the value of that element .
What I mean is if the element's value is "Test" I am getting a combobox which
just fits test . If it is "Testing Application" I am getting a propotionate
combobox .I want all the comboboxes to be of equal size
Also I have set the size of this variable to Maximum in Access


Here is the ASP Code
<table border="1" width="50%" bordercolor="#CC9966">

<tr>
<td width="50%"><font color="#000080" size="4">
<select name=cboSecondary >
<option value="<%=objRS.Fields("itemid")%>"><%=objRS.Fields("name")%>
</select>
</td>
</tr>
</table>

Devin Knutson
09-13-2002, 03:57 PM
"Raja" <arch_and@yahoo.co.uk> wrote in message news:3d8102c9$1@10.1.10.29...
>
> Hi all,
> I am trying to display combo boxes populated from an MS Access database
> in a table .The problem is each combox in a different cell is getting
displayed
> with a different size which seems to be the size of the value of that
field.

Try this:
<select name=cboSecondary style="width:100%">

This should set the combo box the the width of the table cell it's in.

HTH!

Devin Knutson
Senior Developer
WebNW, LLC