MyBB Community Forums

Full Version: Couple Q's about background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
1) how can i make it so my background does not scroll when i scroll down

2) how can i make it so my backgrounds fits the users screen resolution
Hi, Welcome to MyBB Smile

1) Someone else will answer (I hope), since we both want to know.

2)

#container {
	background: #fff url(images/example.gif) repeat;
	width: 94%;

Using a '%' for the width should 'fit' any screen resolution.
Note:
You can also use... (for example)
min-width: 1000px;
max-width: 1600px;
on the ' body { ' to control and avoid "way too wide" and "way too narrow."




(2012-02-11, 12:54 AM)hindu Wrote: [ -> ]1) how can i make it so my background does not scroll when i scroll down

This:
background-attachment: fixed;
(2012-02-11, 06:29 AM)seeker Wrote: [ -> ]Hi, Welcome to MyBB Smile

1) Someone else will answer (I hope), since we both want to know.

2)

#container {
	background: #fff url(images/example.gif) repeat;
	width: 94%;

Using a '%' for the width should 'fit' any screen resolution.
Note:
You can also use... (for example)
min-width: 1000px;
max-width: 1600px;
on the ' body { ' to control and avoid "way too wide" and "way too narrow."
thanks for reply, but what i meant is my actual background.

see my background is a wallpaper with a Minecraft creeper poking out from the side. here is a pic of what it looks like. I want to make it so no matter what the screen resolution is the background will fit. i tried your code but it made the actual forum just stretch out.

[Image: 07ab2167e220ccc0686917e6e9b0d088.png?1328988814]

(2012-02-11, 06:31 AM)cfillion Wrote: [ -> ]
(2012-02-11, 12:54 AM)hindu Wrote: [ -> ]1) how can i make it so my background does not scroll when i scroll down

This:
background-attachment: fixed;
Thanks it worked Smile