# Menu with slider and various button widths

**URL:** <https://forum.kirupa.com/t/menu-with-slider-and-various-button-widths/237039>\
**Category:** Uncategorized\
**Created:** [August 26, 2007, 7:30pm UTC](https://forum.kirupa.com/t/menu-with-slider-and-various-button-widths/237039 "2007-08-26T19:30:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![njacobson](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@njacobson](https://forum.kirupa.com/u/njacobson)\
**Post date:** [August 26, 2007, 7:30pm UTC](https://forum.kirupa.com/t/menu-with-slider-and-various-button-widths/237039/1 "2007-08-26T19:30:03Z")

</div>

I have a horizontal menu with various width buttons such as “home” and “location & hours”.

I’m trying to use this tutorial, but I can’t figure out how to adjust the math to move the slider to the center of my button instead of the top left \_x coordinate.

[http://www.kirupa.com/developer/mx2004/menu\_with\_slider.htm](http://www.kirupa.com/developer/mx2004/menu_with_slider.htm)

Any ideas please?
