2021-04-04 11:35:14 -04:00
|
|
|
.parent {
|
|
|
|
width: 300px;
|
|
|
|
height: 600px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.child {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow-y: scroll;
|
|
|
|
padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */
|
2021-04-07 18:05:07 -04:00
|
|
|
padding-left: 7px;
|
2021-04-04 11:35:14 -04:00
|
|
|
box-sizing: content-box; /* So the width will be 100% + 17px */
|
|
|
|
}
|
2021-04-07 18:05:07 -04:00
|
|
|
.child a {
|
|
|
|
width: 90%;
|
|
|
|
}
|