MyBB Community Forums

Full Version: background and adding shadow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

MikeInToshx

Hey,

1.
How can I make my background image not move or repeat?
So when u scroll down, that the background doesn't move.

2.
How can I add shadow on the sides of the content?


Thanks


(site:http://computerhelpforum.be/)

Number 2 has been answered already, thanks.
What do you mean by not move?

MikeInToshx

Something like this:
http://be.hardware.info
Try adding this to your global.css stylesheet.

background: #fff url(path to image) no-repeat center fixed;

ACP>Templates & Styles>Themes>YOUR THEME>Global.css
Add this on the Body tag
background-attachment: fixed;

Can't access your site(IP probably banned) so I can't see what content you are referring to.
box-shadow: 0 0 2px #000;
box-shadow applies around all sides so you can't just choose 2 sides.

MikeInToshx

That worked, Arbaz.

@ronangelo: The shadow is good, thanks though.

where are u from? I didn't block any countries as far as I know =/
(2013-07-16, 07:09 PM)ronangelo Wrote: [ -> ]Add this on the Body tag
background-attachment: fixed;

Can't access your site(IP probably banned) so I can't see what content you are referring to.
box-shadow: 0 0 2px #000;
box-shadow applies around all sides so you can't just choose 2 sides.

Your IP is not banned. The OPs site is having some trouble staying online. I had to refresh it couple of times in order to access it.