Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Row Strikethrough Not Working #74

Open
eohlde opened this issue Jun 13, 2019 · 0 comments
Open

Table Row Strikethrough Not Working #74

eohlde opened this issue Jun 13, 2019 · 0 comments

Comments

@eohlde
Copy link

eohlde commented Jun 13, 2019

I'm not sure if it's my code or an actual error.
After I test out the application (page 42), I browse to https://localhost:44305/todo but when I check the todo done box, I only get this:
image

Here the lines added to site.css
div.todo-panel { margin-top: 15px; } table tr.done { text-decoration: line-through; color: #888; }

Here is my Index.cshtml:
`@model TodoViewModel

@{
ViewData["Title"] = "Manage your to-do list";
}

<div class="panel panel-default todo-panel">
    <div class="panel-heading">@ViewData["Title"]</div>

    <table class="table table-hover">
        <thead>
            <tr>
                <td>&#x2714;</td>
                <td>Item</td>
                <td>Due</td>
            </tr>
        </thead>

        @foreach (var item in Model.Items)
        {
            <tr>
                <td>
                    <input type="checkbox" class="done-checkbox">
                </td>
                <td>@item.Title</td>
                <td>@item.DueAt</td>
            </tr>
        }
    </table>

    <div class="panel-footer add-item-form">
        <!-- TODO: Add item form -->
    </div>
</div>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant