Nice tab menus without div blocks

I recently noticed that you can’t add div blocks into tab menu elements anymore. Under those restrictions, how can you develop a nice, interactive tab menu, such as one with a moving background depending on active tab?

In the end, I worked around it by inserting a text block into the tab menu, then erased all the text in it. Effectively making it a div block.