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 Mon Aug 10, 2009 3: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 Fri Aug 14, 2009 8:40 pm; 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 Mon Aug 10, 2009 4:48 pm

Bump
avatar
Seven
Forumember

Posts : 60
Reputation : 0
Language : English

Back to top Go down

Solved Re: Aligning Background Image

Post by Seven Mon Aug 10, 2009 7:23 pm

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 Mon Aug 10, 2009 7:31 pm

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 Mon Aug 10, 2009 8:02 pm

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 Mon Aug 10, 2009 10:51 pm

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 Tue Aug 11, 2009 11:59 am

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 Tue Aug 11, 2009 1: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 Tue Aug 11, 2009 4:49 pm

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 Wed Aug 12, 2009 9:27 pm

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 Fri Aug 14, 2009 8:39 pm

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 Fri Aug 14, 2009 8:42 pm

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