How do I style CMenu links

Hi all!

My navigation menu uses CMenu and each link is 2 words. Is it possible to force a break between the 2 words of the link and style each separately. I’m sure I’m not explaining myself very clearly, so please see the attached image to see what I mean. The background will be an image, but I want the links to be text.

Is this possible?

Thanks in advance for your help!

-Bill

add the text in a html tag and style it in css here is an example


...

'items' => [

['label' => 'Store <small>view our proudcts</small>', 'url' => ['/store'], 'encodeLabel' => false];

]

...

Thanks for your reply. I was just coming back here to post that I figured it out. I was missing the 'encodeLabel"=>false.

You can actually just add it once below items:

‘items’=>array(…),

‘encodeLabel’=>false

that way you don’t have to keep repeating it for each link.