locked
Reduce Textbox Height on all Forms RRS feed

  • Question

  • User-1499457942 posted

    Hi

      I have below code and want to reduce of textbox on all content pages

    <div class="form-group row">
            <label for="Code" class="col-sm-2">Code</label>
            <div class="col-sm-2">
                <asp:TextBox ID="txt_Code" CssClass="form-control input-sm" runat="server"></asp:TextBox>
            </div>
            <div class="col-sm-8 error">
                 <asp:RequiredFieldValidator ID="rfvtxt_Code" runat="server" ErrorMessage="Code cannot be empty!" Display="Dynamic" ToolTip="Enter Code" ControlToValidate="txt_Code"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="revtxt_Code" runat="server" ErrorMessage="Code can consist of alphabetical characters , spaces!" Display="Dynamic" ToolTip="Enter Alphabats
                 " ControlToValidate="txt_Code" ValidationExpression="^[a-zA-Z\s]+$"></asp:RegularExpressionValidator>
            </div>
        </div>
    
        <div class="form-group row">
            <label for="Inflator" class="col-sm-2">Name</label>
            <div class="col-sm-1">
                <asp:TextBox ID="txt_Name" CssClass="form-control input-sm" runat="server"></asp:TextBox>
            </div>
            <div class="col-sm-8 error">
                 <asp:RequiredFieldValidator ID="rfvtxt_Name" runat="server" ErrorMessage="Name cannot be empty!" Display="Dynamic" ToolTip="Enter Value" ControlToValidate="txt_Name"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="revtxt_Name" runat="server" ErrorMessage="Code can consist of alphabetical characters , spaces!" Display="Dynamic" ToolTip="Enter Alphabats
                 " ControlToValidate="txt_Name" ValidationExpression="^[a-zA-Z\s]+$"></asp:RegularExpressionValidator>
            </div>
        </div>

    Thanks

    Friday, September 7, 2018 4:15 PM

All replies

  • User2103319870 posted

    want to reduce of textbox on all content pages

    You could apply a global css styles which affects all textboxes in page

    input[type="text"] {
       height: 14px;  
    }

    Saturday, September 8, 2018 1:48 AM