开发者

how to bold a label in zend form element

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜