# Rising scroll threshold in code blocks (or complete unfolding)

**URL:** <https://meta.discourse.org/t/rising-scroll-threshold-in-code-blocks-or-complete-unfolding/34260>\
**Category:** UX\
**Created:** [8. Oktober 2015 um 09:45 UTC](https://meta.discourse.org/t/rising-scroll-threshold-in-code-blocks-or-complete-unfolding/34260 "2015-10-08T09:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![firegurafiku](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firegurafiku/32/116849_2.png) [@firegurafiku](https://meta.discourse.org/u/firegurafiku)\
**Post date:** [8. Oktober 2015 um 09:45 UTC](https://meta.discourse.org/t/rising-scroll-threshold-in-code-blocks-or-complete-unfolding/34260/1 "2015-10-08T09:45:51Z")

</div>

When you insert a Markdown code block (` ````) into your message, it receives automatic vertical scrollbar if its content is long enough. But I don’t mind having long listings in messages and want to display code inline until it reaches, say, 200 lines long. Is there a way to control this threshold?

Alternatively, if no such threshold can be set, is it possible to completely unroll the listing regardless its length? I tried setting `display: table` to code tag, it worked, but block width got shrink to content width too. So I tried setting `width: 100%`, but that resulted in having horizontal scrollbar emerged. I’m not that skilled in CSS, could anybody please help me?

---

_[View the full topic](https://meta.discourse.org/t/rising-scroll-threshold-in-code-blocks-or-complete-unfolding/34260)._
