AUI Dropdown Submenu as Custom HTML?

Hello,

My company would like to add a submenu between the spaces and create space menu/button in the top nav bar.

I tried out just adding the aui sub menu code to the custom html section but when viewing it placed the button above the nav bar instead of on the nav bar

Dropdown with submenu Amazon Apple Facebook Google Recently visited Atlassian

Can anyone steer me in the right direction for achieving this?

Thanks