How to add background image in the responses

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

How to add background image in the responses

Post by Galandas »

style prosilver


How to add background image in the responses
an 'image instead of the base color of prosilver.....thanks in advance :)

here is what I mean
Image



I modified the colours.css but nothing happens.

Code: Select all

.bg1 {
	background-color: #7b5a47;
	background-image: url("{T_THEME_PATH}/images/sfondo.gif"); 
	border: 1px solid #612D09;
}

.bg2 {
	background-color: #7b5a47;
	background-image: url("{T_THEME_PATH}/images/sfondo.gif");  
	border: 1px solid #612D09;
}

.bg3 {
	background-color: #7b5a47;
	background-image: url("{T_THEME_PATH}/images/sfondo.gif"); 
	border: 1px solid #612D09;
}

Re: How to add background image in the responses

Post by Steve »

needs to go in colours.css
example
find:

Code: Select all

/* Post body styles
----------------------------------------*/
.postbody {
	color: #333333;
}
replace with:

Code: Select all

/* Post body styles
----------------------------------------*/
.postbody {
	color: #333333;
	background-image: url("{T_IMAGESET_PATH}/site_logo.gif");
	background-repeat: no-repeat;
	background-position: center;
}
test.PNG
You do not have the required permissions to view the files attached to this post.

Re: How to add background image in the responses

Post by Galandas »

how to ensure that surrounds the whole page

I did so

Code: Select all

.postbody {
	color: #e1ecf2;
        background-image: url("{T_THEME_PATH}/images/sfondo.gif");
	background-repeat: repeat;
	background-position: 100% 0;
}


result
post.JPG
You do not have the required permissions to view the files attached to this post.

Re: How to add background image in the responses

Post by cisco007 »

you might have to make the image bigger or add a repeat pattern to the css!

Re: How to add background image in the responses

Post by Steve »

try this open theme/content.css
find:

Code: Select all

    /* Post body styles
    ----------------------------------------*/
    .postbody {
add after:

Code: Select all

 min-height: 400px !important;

Re: How to add background image in the responses

Post by cisco007 »

will that edit help the image stretch all the way down when the post body become really big!?

Re: How to add background image in the responses

Post by Galandas »

I result............. :oops:
post2.JPG
You do not have the required permissions to view the files attached to this post.

Re: How to add background image in the responses

Post by Steve »

try this

Code: Select all

.postbody {
   color: #e1ecf2;
        background-image: url("{T_THEME_PATH}/images/sfondo.gif");
   background-repeat: no-repeat;
   background-position: center;
}
and contents.css min-hieght is the height of your image ;)

Re: How to add background image in the responses

Post by Galandas »

ok I pasted this colours.css

Code: Select all

    .postbody {
       color: #e1ecf2;
            background-image: url("{T_THEME_PATH}/images/sfondo.gif");
       background-repeat: no-repeat;
       background-position: 100% 0;
    }
I pasted this content.css

Code: Select all

min-height: 400px !important;

result
post3.JPG
You do not have the required permissions to view the files attached to this post.

Re: How to add background image in the responses

Post by Steve »

can i have that image please i will get the corect code for you later today,its food time!