The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do I center the background?

2 posters

Go down

Solved How do I center the background?

Post by Cool-Guy March 25th 2011, 5:48 pm

Hello,

This is my forum:

http://crimson-butterfly.forumotion.com/

How do I center the background with the buildings? The background is a 1920x1080 background, which means that it is bigger than most members resolution. People with lower resolution have the background looking like this:

How do I center the background? Backgr10

But I would like them to have it looking like this:

How do I center the background? Backgr11

(The part outside the red square, is the part that ain't visible, when on a low resolution display.)

Thanks. Very Happy
avatar
Cool-Guy
Forumember

Posts : 295
Reputation : 0
Language : English

Back to top Go down

Solved Re: How do I center the background?

Post by Cool-Guy March 25th 2011, 11:53 pm

I guess it is OK to double post if I solved the problem, myself. Smile

I figured that this was the code to use:

Code:
body
{
background-position:center;
}

Marking this as "solved".
avatar
Cool-Guy
Forumember

Posts : 295
Reputation : 0
Language : English

Back to top Go down

Solved Re: How do I center the background?

Post by MrMario March 26th 2011, 3:17 am

Solved => Locked
MrMario
MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1839
Language : test

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum