ASP:DropDownList style in Netscape

  • Thread starter Thread starter Mat
  • Start date Start date
M

Mat

Hi,

I am using an ASP:DropDownList and trying to set a CSS Class and Width
to it. Within IE (ver 6 at least) this all works fine. In Netscape 7 though,
the DDL is as wide as the longest entry and it does not inherit the class.
Here is a copy of the code on the page ...

<asp:dropdownlist id="Dropdownlist3" runat="server" Width="140" Height="15"
Font-Size="9pt" CssClass="LeftSearch" DataValueField="CategoryID"
DataTextField="CategoryName" AutoPostBack="True"></asp:dropdownlist>

I am using a databind in the codebehind to populate the data. I have
checked in the page source of Netscape and it does not add the width
attribute to the Select box.

Any suggestions??

Thanks,

Mat.
 
Yes but to no avail as Netscape isn't picking up the style either. It just
produces a standard font.

Thanks,

Mat.
 
try

<asp:dropdownlist style="WIDTH: 140px; HEIGHT: 15px"etc...

instead of

<asp:dropdownlist Width="140" Height="15" etc...

HTH
 
Back
Top