Take this JQuery UI Button sample as a reference: http://jqueryui.com/demos/button/#splitbutton
Now, how would you implement that dropdown when click the small button? M
IMHO, drowdowns should always appear 'over' other content, not push it down, so absolute positioning is perfect for that. Basically add a wrapper div with position: relative
around the button and the dropdown menu (which will have position:absolute; display:none
), and toggle the dropdown visibility on click. The absolute positioning of the dropdown shouldn't be affected by other children of the wrapper div, such as the button, so it will appear exactly where you tell it to in the CSS.