<div> won't scroll in Chrome

It’s about my markdown previewer.

Demo: https://hissing-rake.surge.sh/
GitHub: https://github.com/kevcomedia/markdown-previewer

My intention was to make the preview <div> of my markdown previewer as scrollable. It works fine in Firefox, but not in Chrome (and other devices).

Can anyone take a look? Thanks :slight_smile:

1 Like

Setting a fixed height works. For some reason in Chrome the div just get as big as needed for the text, but in Firefox it doesn’t.

height: calc(100vh - 150px) seems about right.

BTW nice design!

2 Likes

Thanks :smiley: I’ll give it a shot tomorrow

1 Like