# Adding a separator line to a Toolbar Menu

**URL:** <https://forum.vassalengine.org/t/adding-a-separator-line-to-a-toolbar-menu/83681>\
**Category:** Module Design\
**Tags:** tutorial\
**Created:** [September 23, 2024, 9:31pm UTC](https://forum.vassalengine.org/t/adding-a-separator-line-to-a-toolbar-menu/83681 "2024-09-23T21:31:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marktb1961](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/marktb1961/32/231_2.png) [@marktb1961](https://forum.vassalengine.org/u/marktb1961)\
**Post date:** [September 23, 2024, 9:31pm UTC](https://forum.vassalengine.org/t/adding-a-separator-line-to-a-toolbar-menu/83681/1 "2024-09-23T21:31:45Z")

</div>

Question from an old post:

> [@Toolbar Menu Options](https://forum.vassalengine.org/t/toolbar-menu-options/556/1):
>
> What about a break line (so that categories can be made within the dropdown)?

You can fake this feature as follows:-

1. Create a separator line using the Multi-Action Button component.  
-. e.g. ![image](https://forum.vassalengine.org/uploads/default/original/2X/c/cd0ee8c988d08242338e76e7773c94b8835ca8f5.png)

- for this to work, you’ll need to specify a line of html as the Button text to generate your separator. When I’ve done this, I use `&#9135;` as my separator character, as follows:  
`<html><span style=line-height:40%;color:#CCCCCC;>&#9135;&#9135;`
- repeating the separator character to cover the width you require.

1. Finally, add this Button into your Menu list where ever you want the separator line.

Here is the appearance in the Game Options drop-down menu of Commands & Colors: Napoleonics v5.1:

 ![image](https://forum.vassalengine.org/uploads/default/original/2X/c/c375c8e198619178a7963451a28cfedc0c7c9972.jpeg)

Mark

PS When I was playing around with this, I tried using the HTML `<hr>` tag to get the effect more succinctly. However, this didn’t work - I presume because there’s no contextual link between the use of that tag and the width of the drop-down menu.
