Skip to content

Commit 7057f53

Browse files
committed
Keep ref scrolling example scrollable at wider viewport sizes
1 parent ae5e480 commit 7057f53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/content/learn/manipulating-the-dom-with-refs.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ export default function CatFriends() {
166166
```css
167167
div {
168168
width: 100%;
169+
max-width: 400px;
170+
margin: 0 auto;
169171
overflow: hidden;
170172
}
171173

0 commit comments

Comments
 (0)