I am trying to style an ASP textbox by linking it to my CSS file. However, the standard textbox remains. Here is my code:
<asp:TextBox ID="txtFName" runat="server" CssClass="tb5"></asp:TextBox>
CSS file:
.tb5 {
border:2px solid #456879;
border-radius:10px;
height: 22px;
width: 230px;
}
This code is being used off a master page. Is there any other referencing I need to do or anything else missing? Thanks!
<asp:TextBox ID="txtFName" runat="server" class="tb5"></asp:TextBox>CSSpage is linked in correctly. Then as someone else already said, try refreshing the browser and clearing the cache. This can be done viashift+F5orCTRL+F5. The problem should have been caused by one of these reasons. If the problem is still occurring there maybe some conflicting code.