Title: Dynamic width?
Last modified: February 11, 2018

---

# Dynamic width?

 *  [generationtech](https://wordpress.org/support/users/generationtech/)
 * (@generationtech)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/dynamic-width/)
 * Anyone know how to make the crayon text boxes expand to only the size of the 
   text contained?
 * I’m trying to find something like display:inline-block but can’t seem to find
   it possible in the crayon settings or where else I might put it.
 * I have something similar working in a different area not using crayon for a simple
   text box:
 * .background-notes {
    padding: 2px 6px 4px 6px; color: 222; background-color: 
   rgba(254,166,64,0.2); border: #e3e3e3 2px solid; display: inline-block; }
 * how to do this with crayon?

The topic ‘Dynamic width?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/crayon-syntax-highlighter_b0c4c0.
   svg)
 * [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crayon-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crayon-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crayon-syntax-highlighter/reviews/)

## Tags

 * [crayon](https://wordpress.org/support/topic-tag/crayon/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [inline-block](https://wordpress.org/support/topic-tag/inline-block/)

 * 0 replies
 * 1 participant
 * Last reply from: [generationtech](https://wordpress.org/support/users/generationtech/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/dynamic-width/)
 * Status: not resolved