The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Background Problem, Image does not stay in the same position when resized
ThE DaRkSiD3
post Sep 17 2009, 01:33 PM
Post #1





Group: Members
Posts: 3
Joined: 17-September 09
Member No.: 9,779



Hi im currently working on my website xbox-clan.net and i want to change the background,
iam using a CSS for the background but i dont know how to get this to work.

on my screen the image is exactly where it should be i have a screen resolution of 1680x1050, my friend has a resolution og 1440x900 when he opens the site the background is in a diffrent position which ruins the background.

i dont know how to lock a background in the same position does anyone have any idea?

i'll put in 2 screenshots to show what i mean.

(These are big screenshots)

My screen which is good

My friends screen which is not good

I tried almost everything, i tried to find information about trying to use, 2 background images.. but this seems to be impossible?
my idea was to create a PNG image of the spartan renders and set them to center..that way they will always be in the right spot since that is where the website will also open,
and another image for the background itself.. but i cant seem to make that work and i cant find anything about it anywhere so i think that that is impossible?
if anyone can help me out that will be greatly appreciated.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Sep 17 2009, 07:00 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



It looks like you've centered your content, but that your background image is aligned to the left edge of the browser display area. You should either center them both, or align them both to the left edge of the browser display area.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 18 2009, 12:23 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



You may need these links.
http://htmlhelp.com/reference/css/color-ba...d-position.html
http://www.w3.org/TR/CSS2/colors.html#prop...ground-position
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
ThE DaRkSiD3
post Sep 19 2009, 04:46 AM
Post #4





Group: Members
Posts: 3
Joined: 17-September 09
Member No.: 9,779



alright thnx for the help i will try to get it to work right now biggrin.gif biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
ThE DaRkSiD3
post Sep 19 2009, 04:55 AM
Post #5





Group: Members
Posts: 3
Joined: 17-September 09
Member No.: 9,779



QUOTE(pandy @ Sep 18 2009, 12:23 AM) *


thank you so much! biggrin.gif biggrin.gif it works now biggrin.gif biggrin.gif im so happy biggrin.gif biggrin.gif
i changed to code in CSS to

body {
background-image: url("images/Index_BG.jpg");
background-attachment: fixed;
background-position: 50% 0%;
background-repeat: no-repeat;
background-color:#1b1b1b;
}

those links where very usefull thnx again biggrin.gif biggrin.gif i will save those links in case i want to change it again. laugh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 19 2009, 07:57 AM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



The links you really need to save are these.
http://htmlhelp.com/reference/css/
http://www.w3.org/TR/CSS2/
From there you can get to everything. biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 11:54 PM