Change Side Background

Hi there,

I have searched in the forum with no results.

There is an easy way to set a background image (or sides images) in Yii?

Thank you very much

can you give more details? Note sure if I understand correctly.

Do you mean the main background for the page?

it does not matter to yii

:lol:

use js to select some prepared backgroud images , and then ajax save it to db , next time the user logind load the saved bgImagePath

it depends what strategy you use : one user per theme or whole site share same theme . according your strategy to design your db (if one user per theme you need design the user_id field :P ). you only need select db once . and then store the baImagePath in session or cookie .

glad to hear another voice!

Jst try this linkā€¦ It may help.

Done!

I worked some time with the default css of my web application.

I modified body part of the file webappProject/css/main.css

From this:


body

{

	margin: 0;

	padding: 0;

	color: #555;

	font: normal 10pt Arial,Helvetica,sans-serif;

	background: #EFEFEF;

}

To this:


body

{

	margin: 0;

	padding: 0;

	color: #666;

	font: normal 10pt Arial,Helvetica,sans-serif;

        background-color: #69AE88;

        background: -webkit-gradient(linear, 0% 0%, 0% 70%, from(#B2D7EA), to(#69AE88));

        background: -moz-linear-gradient(top, #B2D7EA 0%, #69AE88 70%);

}

For a nice radient background.

You can put an image too!

Hey,

Nothing is related here with a Yii here.Just add a background-image property in your css.then surely a background image will be shown.

let it try.