开发者

how to bold a label in zend form element

开发者 https://www.devze.com 2023-03-16 06:20 出处:网络
hi i am using zend form , i want to bold one of the labels, this is my element\'s code $od = new Zend_Form_Element_MultiCheckbox(\'od\');

hi i am using zend form , i want to

bold one of the labels , this is my element's code

    $od = new Zend_Form_Element_MultiCheckbox('od');        
    $od->setLabel(' Add Occupancy Denominations : ');
    $od->class = 'od';
    $od->addMultiOptions($options['od']);
    if (isset($options['od_vals'])) { //value set in edit room type
        $od->setValue($options['od_vals']);
    }   
    $od->setDecorators(
                         array(
                              array('ViewHelper',
                                        array('helper' => 'formMultiCheckbox')
                            ),
                            array('Label',
                                        array('class' => 'label')
     开发者_运维技巧                       ),
                            array('HtmlTag',
                                        array('tag' => 'div', 'class' => 'formfield')
                            ),
                         )
                      );

i want to bold

Add Occupancy Denominations :

like this

Add Occupancy Denominations :

how can i do this . please help :(


Well, usually, you can gain that effect through the CSS rule.

.zend_form dt label {
    font-weight: bold;
}

But that's of course if you keep the default decorators.

0

精彩评论

暂无评论...
验证码 换一张
取 消