Скролл

This commit is contained in:
GokaPek 2024-05-28 19:50:37 +04:00
parent 9da8a0fd79
commit 84c7c71263
2 changed files with 16 additions and 10 deletions

View File

@ -43,6 +43,7 @@
<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">
<div class="scrollable-list">
@foreach (var student in students) @foreach (var student in students)
{ {
<div class="form-check"> <div class="form-check">
@ -54,6 +55,7 @@
} }
</div> </div>
</div> </div>
</div>
<div class="row"> <div class="row">
@ -95,4 +97,3 @@
</tbody> </tbody>
</table> </table>

View File

@ -20,3 +20,8 @@ html {
body { body {
margin-bottom: 60px; margin-bottom: 60px;
} }
.scrollable-list {
max-height: 200px; /* Âûñîòà ñêðîëëáàðà */
overflow-y: auto; /* Äîáàâëÿåì ñêðîëëáàð */
}