Yii Framework Forum: Right Justify Zii.widgets.cmenu Item - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Right Justify Zii.widgets.cmenu Item want CMenu items to appear on the right side instead of theleft

#1 User is offline   pottageville_techie 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 06-February 13

Posted 19 February 2013 - 05:45 PM

How Do I align zii.widgets.CMenu items to the right side instead of the left?

Currently, within my protected/views/layouts/main.php I have the following code that aligns the item Logout to the left. But I want to align this to the right. How Do I do this?

	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
			    array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->

0

#2 User is offline   mbi 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 604
  • Joined: 08-May 09

Posted 19 February 2013 - 06:37 PM

<div id="mainmenu" style="text-align:right;">
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users