capsuline
(Robinkouwen)
1
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.
capsuline
(Robinkouwen)
3
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

To avoid the client script loading, add this line of code in the config main file,
‘clientScript’=>array(
'scriptMap'=>array(
'script1.js'=>false,
'script1.min.js'=>false,
'script2.js'=>false,
'script2.min.js'=>false
),
),