# Resize code blocks?

**URL:** <https://meta.discourse.org/t/resize-code-blocks/218460>\
**Category:** Feature\
**Created:** [February 16, 2022, 8:32pm UTC](https://meta.discourse.org/t/resize-code-blocks/218460 "2022-02-16T20:32:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)\
**Post date:** [July 19, 2022, 4:55pm UTC](https://meta.discourse.org/t/resize-code-blocks/218460/5 "2022-07-19T16:55:51Z")

</div>

Well, I haven’t figured out horizontal resize, but I was able to add vertical resize with some CSS:

```plaintext
// Scrollable code blocks
.hljs {
    resize: vertical;
    height: 515px;
    max-height: unset;
}

```

Edit: Well… nevermind. I just realized that when the code block is short, that^ makes the div too tall. ☹

---

_[View the full topic](https://meta.discourse.org/t/resize-code-blocks/218460)._
