Change CheckBox Label Text from bold to normal using CSS in ASP.Net

Last Reply one month ago By pandeyism

Posted one month ago

I have three checkbox controls online but the text of these appears in bold, as I can put the text in normal letters, not in bold.

        <div class="col-sm-3" >
            <!--  <input type="password" class="form-control inputstl" id="password1" placeholder="Password here"> -->
            <div class="checkbox-inline">
            <label >
            <!--  <input type="checkbox"> Remember me -->
                <asp:CheckBox ID="chkRegistrar" runat="server" Text="Registrar" Enabled="False" />
            </label>
          </div>
            <div class="checkbox-inline">
            <label >
            <!--  <input type="checkbox"> Remember me -->
                <asp:CheckBox ID="chkActualizar" runat="server" Text="Actualizar" Enabled="False" />
            </label>
          </div>
              <div class="checkbox-inline">
            <label>
            <!--  <input type="checkbox"> Remember me -->
                <asp:CheckBox ID="chkPBaja" runat="server" Text="Baja" Enabled="False" />
            </label>
          </div>           
        </div>

 

You are viewing reply posted by: pandeyism one month ago.
Posted one month ago Modified on 24 days ago

Hi jmontano,

Refer below code.

HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
    <style type="text/css">
        label
        {
            font-weight: normal !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="col-sm-3">
        <div class="checkbox-inline">
            <label>
                <asp:CheckBox ID="chkRegistrar" runat="server" Text="Registrar" Enabled="False" />
            </label>
        </div>
        <div class="checkbox-inline">
            <label>
                <asp:CheckBox ID="chkActualizar" runat="server" Text="Actualizar" Enabled="False" />
            </label>
        </div>
        <div class="checkbox-inline">
            <label>
                <asp:CheckBox ID="chkPBaja" runat="server" Text="Baja" Enabled="False" EnableTheming="True" />
            </label>
        </div>
    </div>
    </form>
</body>
</html>