# 投稿内のスクロールテキストボックス

**URL:** <https://meta.discourse.org/t/scrolling-text-box-in-a-post/104700>\
**Category:** Support\
**Created:** [2018 年 12 月 19 日午後 7:59 UTC](https://meta.discourse.org/t/scrolling-text-box-in-a-post/104700 "2018-12-19T19:59:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Globulle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/globulle/32/98005_2.png) [@Globulle](https://meta.discourse.org/u/Globulle)\
**Post date:** [2018 年 12 月 19 日午後 7:59 UTC](https://meta.discourse.org/t/scrolling-text-box-in-a-post/104700/1 "2018-12-19T19:59:47Z")

</div>

Is it possible to enclose a part of a very long post within a scrolling text box? It could be useful when you need to create a caption, for example.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018 年 12 月 20 日午前 12:43 UTC](https://meta.discourse.org/t/scrolling-text-box-in-a-post/104700/2 "2018-12-20T00:43:24Z")

</div>

I’d recommend using the existing “Hide Details” function for this, like so:

> **Summary**
>
> This text will be hidden

Click the gear icon in the editor, then Hide Details. Or enter it manually if you prefer:

```
[details="Summary"]
This text will be hidden
[/details]

```

Also note that code blocks (4 space indent) have a max height but your font will be forced to fixed-width for the content.

---

<div class="post-metadata">

**Author:** ![Globulle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/globulle/32/98005_2.png) [@Globulle](https://meta.discourse.org/u/Globulle)\
**Post date:** [2018 年 12 月 20 日午前 8:11 UTC](https://meta.discourse.org/t/scrolling-text-box-in-a-post/104700/3 "2018-12-20T08:11:44Z")

</div>

Thanks. I have considered using Hide Details, but my text block is too long… it would oblige the reader to expand a lot of blocks.

I didn’t thought about using code blocks. I encounter two obstacles with that : long lines need horizontal scrolling, and the max height remains far too high. 😕

I’ve also tried some HTML code [like that](https://www.quackit.com/html/codes/html_scroll_box.cfm), without success.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021 年 11 月 10 日午後 11:01 UTC](https://meta.discourse.org/t/scrolling-text-box-in-a-post/104700/4 "2021-11-10T23:01:43Z")

</div>


