locked
centering a checkbox in a grid with the Html.Checkbox helper - inline editing RRS feed

  • Question

  • User379720387 posted

    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>)

    Wednesday, November 26, 2014 5:03 PM

Answers

  • User-821857111 posted

    Make it part of the col12 style declaration:

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



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 27, 2014 2:58 AM

All replies

  • User-821857111 posted

    Make it part of the col12 style declaration:

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



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 27, 2014 2:58 AM
  • User379720387 posted

    I knew that.

    Sorry.

    Thursday, November 27, 2014 8:16 PM