title: cdetailview and cgridview customise css style in yii
body: <p>I am using both cwidgets i.e., cdetailview and cgridview I have displayed it using renderPartial method .</p>
  
  <p>The thing thing is That I need to change my css to it for beautification.I am well versed with css styling but to these widgets, how do I apply it in yii? thats the big question to me, I did walk through all forum pages yet my need is not satisfied.</p>
  
  <p>following is the code</p>
  
  <p><strong>viewb</strong></p>
  
  <pre><code> &lt;?php $this-&gt;widget('zii.widgets.CDetailView', array(
   'data' =&gt; array(),
    //to avoid error
   'attributes' =&gt; $res,
   'cssFile'=&gt;Yii::app()-&gt;request-&gt;baseUrl.'/css/mecss.css',));
  ?&gt;
  </code></pre>
  
  <p>cssFile doesn't work have copy pasted the assets detailview code and applied my css yet no change</p>
  
  <p><strong>controllerb</strong></p>
  
  <pre><code>$this-&gt;renderPartial('viewB',array('res'=&gt;$res));
  </code></pre>
  
  <p><strong>viewc</strong></p>
  
  <pre><code>  &lt;?php
     $this-&gt;widget('zii.widgets.grid.CGridView', array(
     'dataProvider'=&gt;$dataProvider,
    'ajaxUpdate'=&gt;true,
   'columns'=&gt;array(
   array('name'=&gt;' Name','value'=&gt;'$data["name"]'),
   array('name'=&gt;' status','value'=&gt;'$data["status"]'),
   ),
   ));
   ?&gt;
  </code></pre>
  
  <p><strong>controllerc</strong></p>
  
  <pre><code>$this-&gt;renderPartial('viewc',array(
          'dataProvider'=&gt;$dataProvider,
          ));
  </code></pre>
  
  <p>this is the view what am looking for</p>
  
  <p><img src="https://i.imgur.com/y5j2DZh.png" alt="Cdetailview using ajax with customise css"></p>
  
  <p>all the attributes are from the same table's record which i have provided as $res to detailview but then i need deatils, credential details and expirarydetails  as headers for respective attributes .is it possible? if yes please guide else what else can i do so to achieve it please let me know.</p>
  
  <p>am displaying it in modelA and modelD view respectively using ajax</p>
  
  <p>to each i wanna apply my css style but then i dont know how do i start </p>
  
  <p>i do know their's an attribute cssFile am tryng with it can anyone guide for it or any good way.</p>
  
  <p>Please guide let me know how do i achieve it</p>