[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?

grid.Column("BillEmail",
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" })
</text>)

Make it part of the col12 style declaration:

.col12{
    // existing styles
    text-align: center;
}

I knew that.

Sorry.

Leave a Reply