Created
September 28, 2023 16:53
-
-
Save aleksandergurin/70660fe033dc43b0dd3a5888691d8fe1 to your computer and use it in GitHub Desktop.
React scrolling example (CSS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper { | |
width: 200px; | |
height: 100px; | |
overflow-y: scroll; | |
} | |
.item { | |
border: 1px solid lightblue; | |
background: lightsalmon; | |
height: 18px; | |
} | |
.selected { | |
background: salmon; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment