2

I recently added a image to the edit button in YII.I do the following,

'class'=>'CButtonColumn',
        'header' => 'Edit',
        'template' => '{Edit}',
        'buttons' => array(
            'Edit' =>array(
            'label' => 'Edit',
            'imageUrl'=>Yii::app()->request->baseUrl.'/images/Actions-document-edit.ico',
           ));

and css for the button goes like this,

td.button-column a img {
    max-height:25px;
    max-width:25px;
    }

And the actual size of the image Actions-document-edit.ico is 25*25. I have a situation here that, i have an 25*25 image in Google Chrome and 2*2 image in mozilla firefox. Help me to achieve the proper formatting of the image in both the browsers.

Google Chrome Mozilla Firefox

And suggest also the pagenation problem.

Kai
  • 38,985
  • 14
  • 88
  • 103
tnchalise
  • 1,573
  • 2
  • 18
  • 38

2 Answers2

0

Instead of .ico try to use .JPEG or .png or .gif image

Raju
  • 25
  • 5
0

Pagenation problem was solved

.pager ul.yiiPager li.page:after{display: inline-block !important}

But still am getting image problem... Help please...

tnchalise
  • 1,573
  • 2
  • 18
  • 38