CMenu question

i was wondering how can i print html tags in cmenu

what i want to achieve is space betwen menus

thank you




$this->widget('zii.widgets.CMenu',array(

'items'=>array(

array('label'=>'Menu1', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),

//here i want a <br> to be displayed without closing the items array and echo it manually

array('label'=>'Menu2', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)

		),)); 




This is neither possible nor XHTML valid.

Between </li> and <li> is no <br /> tag allowed in the XHTML standard.

To solve your problem, you can add a margin-bottom to your style sheet definitions of your list entry’s class.

dont worry i already removed the ul and li tags because my application doesnt need them :)

still i need to make something like this

Menu 1

SPACE

Menu 2

Ty

As Daniel M has pointed out the best solution would be to apply some css margin-bottom: 20px; for example to all your Menu options.

Another option would be to extend CMenu::renderMenu() to render it to your likings.