How to add background image in the responses

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
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.
Else your topic may be ignored or locked!
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

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;
}
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 863
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

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
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

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
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 863
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

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;
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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!?
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

Re: How to add background image in the responses

Post by Galandas »

I result............. :oops:
post2.JPG
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 863
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

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 ;)
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

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
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 863
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

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!
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
Locked