Letter spacing in menu

Hello, i have one more question about this topic. Before i do the “container trick” as seen above,

I’m looking for a way to do it with dev mode ON and coding. Do you think is possible ? And what would be the code ?

I tried with item id etc but i don’t know coding so obviously it didn’t work. :smile: