Yii Framework Forum: Automatically Line Break, Before Cmenu - Yii Framework Forum

Jump to content

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

Automatically Line Break, Before Cmenu Rate Topic: -----

#1 User is offline   matthew3 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 14-June 12

Posted 09 October 2013 - 04:18 AM

If not including PHP, there is no error.

If include Yii CMenu, automatically added white space before CMenu

Example:

<div id="umenu">
                        <?php $this->widget('zii.widgets.CMenu', array(
                            'encodeLabel' => false,
                            'items' => array(
                                array('label' => '&nbsp;', 'url' => '/', 'itemOptions' => array('class' => 'umenu1')),
                                array('label' => 'RÓLUNK', 'url' => StaticpageModule::getUrl(1), 'itemOptions' => array('class' => 'umenu2')),
                                array('label' => 'TERMELÉS', 'url' => StaticpageModule::getUrl(2), 'itemOptions' => array('class' => 'umenu3')),
                                array('label' => 'A KÁVÉ', 'url' => StaticpageModule::getUrl(3), 'itemOptions' => array('class' => 'umenu4')),
                                array('label' => 'EGYÜTTMŰKÖDÉS', 'url' => StaticpageModule::getUrl(5), 'itemOptions' => array('class' => 'umenu5')),
                                array('label' => 'KAPCSOLAT', 'url' => StaticpageModule::getUrl(4), 'itemOptions' => array('class' => 'umenu6')),
                            ),
                        )); ?>
                    </div>


Output: http://forweb.hu/tmp/hiba.png

Thank for the reply.
0

#2 User is offline   chandran 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 495
  • Joined: 08-October 12
  • Location:Austria

Posted 09 October 2013 - 09:31 AM

Hi,

Please can you try by removing the top div.

Thanks
chandran nepolean
Thanks
chandran nepolean

My own extension:
http://www.yiiframew...sion/ejqueryte/

My wiki
http://www.yiiframew...checkboxcolumn/

If it work dont hesitate to click +1 button
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