I have a webpage using ASP.NET that contains Textboxes and Dropdown Menu items. I want the page to have a uniform look so I want all of the textboxes to be the same width and all of the dropdown menus to be the same width. If I add the WIDTH attribute to the control and set the value everything works fine.
I want to be able to control the widths from one place so I created CSS class styles in my CSS style sheet where I set the width. I then apply the CSS Class style to the control. When I display the page, my controls do not size according to the width set in the Style Sheet. Can someone please tell me what I am doing wrong?
Style Sheet Include in Header
<link rel="Stylesheet" type="text/css" href="CSS/EMPStyles.css" />
TextBox Control Definition on Web Page
<asp:TextBox ID="txtFirstName" runat="server" CausesValidation="True" CssClass="TextBoxFormat"></asp:TextBox>