[RESOLVED]centering a checkbox in a grid with the Html.Checkbox helper – inline editing

I want my checkbox centered, but where do I put my style?

style: "col12",
format: @<text>
<span class="display-mode">@Html.CheckBox("billemail-display", item.BillEmail, new { disabled = "disabled" })</span>
@Html.CheckBox("BillEmail", item.BillEmail, new { @class = "edit-mode" })

Make it part of the col12 style declaration:

    // existing styles
    text-align: center;

I knew that.


Leave a Reply