Скролл
This commit is contained in:
parent
9da8a0fd79
commit
84c7c71263
@ -43,15 +43,17 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-4">Students:</div>
|
<div class="col-4">Students:</div>
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
@foreach (var student in students)
|
<div class="scrollable-list">
|
||||||
{
|
@foreach (var student in students)
|
||||||
<div class="form-check">
|
{
|
||||||
<input class="form-check-input" type="checkbox" name="studentIds" value="@student.Id" id="student-@student.Id">
|
<div class="form-check">
|
||||||
<label class="form-check-label" for="student-@student.Id">
|
<input class="form-check-input" type="checkbox" name="studentIds" value="@student.Id" id="student-@student.Id">
|
||||||
@student.Name
|
<label class="form-check-label" for="student-@student.Id">
|
||||||
</label>
|
@student.Name
|
||||||
</div>
|
</label>
|
||||||
}
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -95,4 +97,3 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,4 +19,9 @@ html {
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
margin-bottom: 60px;
|
margin-bottom: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollable-list {
|
||||||
|
max-height: 200px; /* Âûñîòà ñêðîëëáàðà */
|
||||||
|
overflow-y: auto; /* Äîáàâëÿåì ñêðîëëáàð */
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user