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.

Aligning Background Image

4 posters

Go down

Solved Aligning Background Image

Post by Seven August 10th 2009, 11:46 pm

Does anyone know how to get my background image on my forum aligned to fit any screen? I've seen the html/css for it somewhere but I can't remember what it is, or where I found it.

Also I'm not entirely sure which part to post it in. I'm using Shadow Designs forum layout, and i've edited it quite a bit.

http://www.flyclan.darkbb.com


Last edited by Seven on August 15th 2009, 4:40 am; edited 1 time in total
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 11th 2009, 12:48 am

Bump
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 11th 2009, 3:23 am

Bumped again... Does no one know how?
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by Awesomeness August 11th 2009, 3:31 am

Sorry, I don't understand. Which way do you want it aligned?
Awesomeness
Awesomeness
Forumember

Female Posts : 97
Reputation : 30
Language : English & Latin - yes, the real language of dead roman guys!
Location : Shinedown Nation

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 11th 2009, 4:02 am

I want so it's centered and fits to all screen resolutions. (mines 1440x900) It SO off kilter
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by ankillien August 11th 2009, 6:51 am

May I remind you that double/triple posting is not tolerated unless separated by 24 hours. Please use EDIT button.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 11th 2009, 7:59 pm

Sorry about that, I still haven't found what I need, acually I know what I need to put, I'm just sure I know where to put it!

Code:
body
{
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}

Could someone help me out as to where I would put this? again the forum is flyclan.darkbb.com and I can't figure out where to put this bit of code ( I believe it is correct), My screen resolution is 1440x900, and the forums look absolutely awful without the background centered, natrually the forums and logo are, but not the background... OOOH no >.<
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by ReBoot August 11th 2009, 9:01 pm

Hello, You can do it like this [ creating an Html page ]
Code:
<html
<head> <title> Html page title </title>
Your head info/script etc </head>

<body background="Background Url">
<link rel="shortcut icon" href="Address bar favicon Url">
<style>
body
{
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
} </style>

Other content

</body>
</html>
We'll have to wait for CSS3 to be able to stretch a background for
all browsers but not all backgrounds will look good stretched. lol
Edit your image to the desired screen size first then upload it.
It's not going to be the same for all visitors to your page though.
ReBoot
ReBoot
New Member

Male Posts : 2
Reputation : 0
Language : Ones & Zeros
Location : The Dark Tower

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 12th 2009, 12:49 am

I'm aware that would work if I was creating a new page, I was wanting to do it with the background of my forum, aligning to the center of the page is what i need it to do mainly, but it just wont seem to work and I cant find the proper style sheet to edit
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 13th 2009, 5:27 am

BUMP
Someone Help me Please Sad
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven August 15th 2009, 4:39 am

You don't have to worry about it, I figured it out, I'm suprised no one could answer me, it was super easy.

Lock please.
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by ankillien August 15th 2009, 4:42 am

Locked as requested by author.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Back to top

- Similar topics

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