Thanks Bob for your reply. I will do so in the appropriate newsgroup.
"Bob Barrows [MVP]" wrote:
[color=blue]
> In order to figure that out, we (or the html/css group) would need to see
> the resulting html. So run your page, View Source, copy out the part of the
> source that contains the <SELECT> element (opton tags and all), and post
> that (just that - do not post the entire page unless requested to do so) to
> the appropriate group. :-)
>
> That said, maybe you have to use the SELECT's width attribute after all. It
> may depend on the browser ...
> I'm a little weak in this area myself and cannot answer these types of
> questions off the top of my head without resorting to google and/or
> trial-and-error.
>
>
> Jack wrote:[color=green]
> > For some reason with the above code there is no change in the
> > width(size) of the combo box. Any thoughts. Thanks
> >
> > "Bob Barrows [MVP]" wrote:
> >[color=darkred]
> >> Jack wrote:
> >>> Hi,
> >>> I have a asp page where multiple rows for a client is generated
> >>> using asp. Some of these are combo boxes and some are text and are
> >>> coming
> >>> from a recordset. Now, the following is the code to geneated one of
> >>> those combo boxes.
> >>>
> >>> CODE:
> >>> <td align="left">
> >>> <font face="Verdana,Arial" color="#000000" size="1">
> >>> <select name="txtagency">
> >> <snip>
> >>>
> >>> I need to reduce the size of this combo box. I would like to know,
> >>> in
> >>> the present scenario, how can one control (reduce) the size of the
> >>> combo box. I believe what I am getting is the default value of combo
> >>> box. Thanks.
> >>
> >> HTML/CSS questions will get better response in one of the newsgroups
> >> devoted to those topics
> >> (
http://groups.google.com/groups/dir?sel=33584039).
> >>
> >> Remember, asp generates the html which is sent to the client. So,
> >> before you can get asp to generate the correct html, you have to
> >> learn what the correct html or css is.
> >>
> >> "width" is both an attribute of a SELECT element and a style
> >> property. It is more "accepted" these days to use the css style
> >> properties. So add a style attribute to your SELECT element and put
> >> in the width you wish the control to have.
> >>
> >> <select name="txtagency" style="width:50px">
> >>
> >> Bob Barrows
> >>
> >> --
> >> Microsoft MVP -- ASP/ASP.NET
> >> Please reply to the newsgroup. The email account listed in my From
> >> header is my spam trap, so I don't check it very often. You will get
> >> a quicker response by posting to the newsgroup.[/color][/color]
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>
>[/color]