Multiple Css Classes

Hi all,

I’m trying to use multiple css classes in a single element but my box class inside the


<div class="container box" id="page">

is somehow being overwritten. to


<div class="container" id="page">

Example

layouts/main.php




<div class="container box" id="page">

</div>



css/main.css




.box{ background: white; }



any ideas ?

Thanks

There is a chance js is overriding your class. Try disabling any scripts and see what happens.

Thanks for the reply @sidewinder

There is no any script loaded at this particular page.

See attached image.

I know Yii loads the js script automatically on demand but i really don’t know how to manually disable them.

any idea?

attached image

4387

scripts_loaded.jpg

To avoid the client script loading, add this line of code in the config main file,

‘clientScript’=>array(

         'scriptMap'=&gt;array(


         'script1.js'=&gt;false,


         'script1.min.js'=&gt;false,


         'script2.js'=&gt;false,


         'script2.min.js'=&gt;false


     ),

),

Thanks @kumarkulandai