Create a CSS gradient background
...requirements of using this extension (e.g. Yii 1.1 or above)...
extract to protected/extentions
$this->widget('ext.egradient.EGradient', array( 'target'=>'#grad1' )); <?php $this->widget('ext.egradient.EGradient', array( 'target'=>'#grad2', 'color1'=>'#2AA737', 'color2'=>'#00703A' )); <?php $this->widget('ext.egradient.EGradient', array( 'target'=>'#grad3', 'color1'=>'#2AA737', 'color2'=>'#00703A', 'style'=>'toTop' )); <div id="grad1" style="width:300px;height:100px;"></div> <br /> <div id="grad2" style="width:300px;height:100px;"></div> <br /> <div id="grad3" style="width:300px;height:100px;"></div>
Total 3 comments
ah.. o.k.
yes, you just change target to any class do you want here for example:
Hi
I think it´s better to append the gradient as a CSS-Class - so you can style different div-container or other in once.
best
Leave a comment
Please login to leave your comment.