Log In · Register

 
 
Closed TopicStart new topic
Center Background
lpdrummer
post Jul 5 2005, 11:31 AM
Post #1


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



OK I am trying to center my background so it lines up with my image. I was told to do this, but don't know where to edit these things!

QUOTE(nyah-nek0 @ Jul 1 2005, 12:37 PM)
It works a helluva lot better if you do this.
----
Set alignment to Left.
Put your background as Centered. (center center if you're using CSS)
Set your image div to <div align="center">
Also, if you edited the width of the original image, they won't line up anyways.

*


if anyone could help, it would be great!

xanga's here- http://www.xanga.com/lpdrummer
 
talcumpowder
post Jul 5 2005, 12:25 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



...... Since you don't seem to get intermediate terms.... Let's go with n00b ones.
----
1. Sign into Xanga and go to your Look and Feel.
2. Change the alignment of your page to LEFT. It's the part of the page that say Page Alignment:. Now is also a good time to make sure your page is on 100% page width.
3. Take out your exsisting image map code and put this one in.
4. Put your background as Centered. It's center center if you're using CSS to position the background.
5. If that doesn't work, then check to see if the width of your image is larger than the width of your background. If so, you need to make a new background.
 
lpdrummer
post Jul 5 2005, 01:54 PM
Post #3


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jul 5 2005, 1:25 PM)
...... Since you don't seem to get intermediate terms.... Let's go with n00b ones.

*


Yes! Until I get this, that would probably be best...

QUOTE(nyah-nek0 @ Jul 5 2005, 1:25 PM)

4. Put your background as Centered. It's center center if you're using CSS to position the background.
5. If that doesn't work, then check to see if the width of your image is larger than the width of your background. If so, you need to make a new background.

*


OK This is where I got thrown off in the first place- Where is the part where I put "centered"?

And the width of my background is the same width as my header. Both 800 Pixels wide.
 
talcumpowder
post Jul 5 2005, 02:42 PM
Post #4


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



..... Are you using CSS or the background box?
Because there's a nifty little drop-down under the background box and one of the options is Centered.
 
lpdrummer
post Jul 5 2005, 05:07 PM
Post #5


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jul 5 2005, 3:42 PM)
..... Are you using CSS or the background box?
Because there's a nifty little drop-down under the background box and one of the options is Centered.

*


I'd rather use the header so that when I release this skin, I have the code already in the header HTML instead of having to tell people to do it.
 
talcumpowder
post Jul 5 2005, 05:50 PM
Post #6


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



..... Like this.
CODE
body{background-image:url('URL HERE'); background-repeat: repeat-y; background-position: center center;}
 
lpdrummer
post Jul 6 2005, 01:34 PM
Post #7


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jul 5 2005, 6:50 PM)
..... Like this.
CODE
body{background-image:url('URL HERE'); background-repeat: repeat-y; background-position: center center;}

*


Should I put that in place of this code you gave me?

<div style="position: static; margin-left: -0; margin-top: -97;">
<img src="http://img.photobucket.com/albums/v171/lpdrummer/Xanga/BeatSkinB.gif" width="800" height="694" border="0" alt="" usemap="#beatmap">
 
talcumpowder
post Jul 6 2005, 01:49 PM
Post #8


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



..... Nevermind. Let's just do it like this.
CODE
<stye type='text/css'>body{background-image:url('URL HERE'); background-repeat: repeat-y; background-position: center center;}</style>
Put that anywhere in your Custom header.
CODE
<div align="center">
<img src="http://img.photobucket.com/albums/v171/lpdrummer/Xanga/BeatSkinB.gif" width="800" height="694" border="0" alt="" usemap="#beatmap">
That's what your image should look like.
 
lpdrummer
post Jul 6 2005, 01:59 PM
Post #9


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jul 6 2005, 2:49 PM)
..... Nevermind. Let's just do it like this.
CODE
<stye type='text/css'>body{background-image:url('URL HERE'); background-repeat: repeat-y; background-position: center center;}</style>
Put that anywhere in your Custom header.
CODE
<div align="center">
<img src="http://img.photobucket.com/albums/v171/lpdrummer/Xanga/BeatSkinB.gif" width="800" height="694" border="0" alt="" usemap="#beatmap">
That's what your image should look like.

*


1. you are a god among men!
2. Should I take anything out of my code with those in? Like have both these in there-


and


3. My left sidebar text is gone!
4. What do I play around with to get the header to line up with the BG? Theres like a 2 pixel difference (This may be because of repeated code mentioned above)
 
talcumpowder
post Jul 6 2005, 02:13 PM
Post #10


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Use this.
As to why your sidebar text is gone... That's a fault on your own part. None of the codes I've given you do such things. Even a repeated code wouldn't. See if that works. Depending on which code you had first, the broswer would read the CSS diffrently.
 
lpdrummer
post Jul 6 2005, 02:21 PM
Post #11


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jul 6 2005, 3:13 PM)
Use this.
As to why your sidebar text is gone... That's a fault on your own part. None of the codes I've given you do such things. Even a repeated code wouldn't. See if that works. Depending on which code you had first, the broswer would read the CSS diffrently.

*



OK I'll have to see what I did thats causing it...

But what did that code do? I put it in, but just wondering. And can I add something in here

to move the main header right one pixel?
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: