Centering background image possible?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
i10179
Registered User
Posts: 31
Joined: Tue Sep 15, 2009 10:18 pm

Centering background image possible?

Post by i10179 »

Hello there,
I would like to know if it is possible to center a background image? The actual setting is that it repeats itself from the left to the right, I would like to start to repeat from the middle.. Hope I did express myself intelligible. The code goes like this:

Code: Select all

html, body {
	color: #536482;
	background-color: #FFFFFF;
	background-image: url("{T_THEME_PATH}/images/planetstyles/bg.png");}
Cheers
User avatar
PlanetStyles.net
Former Team Member
Posts: 4623
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Centering background image possible?

Post by PlanetStyles.net »

If you've got a repeating background image, adding a background position won't have any affect.

Seeing your board / background image will give us a clearer image of what you're trying to achieve though. :)
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
i10179
Registered User
Posts: 31
Joined: Tue Sep 15, 2009 10:18 pm

Re: Centering background image possible?

Post by i10179 »

Sure, goto http://www.****-***.**. I am working on a Board for a Boardgame called Blood Bowl. However, the actual background I am using is nice.. But I did this [url=http://********-***.**/phpbb3-bbl/styles/Star2.0/theme/images/planetstyles/bg_rasen.png]here[/url] with Photoshop and would prefair it more.

Btw. I am not done with the complete Design hehe.
Last edited by i10179 on Fri Mar 26, 2010 1:02 am, edited 1 time in total.
User avatar
PlanetStyles.net
Former Team Member
Posts: 4623
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Centering background image possible?

Post by PlanetStyles.net »

Hmm I see. Like I said, even if you did add background-position: center; it wouldn't make a blind bit of difference, it would look just the same as if you just replaced your current background image. :|
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
i10179
Registered User
Posts: 31
Joined: Tue Sep 15, 2009 10:18 pm

Re: Centering background image possible?

Post by i10179 »

Hmm thanks for the advice Planet Styles. I am gonna work on something else. ;)
Locked

Return to “[3.0.x] Styles Support & Discussion”