After adjusting the height of a textbox with CSS, I noticed that when placed inside a Panel element, the height reverts back to its previous setting. How can I resolve this issue and keep the height stable?
Here is my HTML code:
<asp:Panel ID="panelPost" runat="server">
<asp:TextBox ID="TxtNumPost" CssClass="TxtNamePost" runat="server"> </asp:TextBox>
</asp:Panel>
This is my CSS code:
.TxtNamePost {
Height: 30%;
}
It's worth mentioning that using height: 30px
works perfectly fine, but I specifically need it to be in percentage form.