|
| |
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/21/2004 16:54:41
Spooky is right, CSS is the simple option, unless you want to spend hours with JavaScript that is? Dan
_____________________________
|
|
|
|
Anthony162
Posts: 56 Joined: 1/12/2004 Status: offline
|
RE: Fixed background image - 6/22/2004 5:34:26
Thank you very much both of you. Ive got it working, and the image is fixed as I wanted it to be. The only thing now though is that when the page loads, the image, which is quite large, starts at the top of the screen and is obscured by the banner. How do I get it so that it starts in the center of the screen? Thank you.
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/22/2004 7:22:52
Add this to your CSS: background-position: center center; Dan
_____________________________
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/22/2004 7:57:06
Post your CSS, and I'll take a look Dan
_____________________________
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/22/2004 8:01:35
<style type="text/css"> body { background: #FFFFFF url(reading paper.gif) fixed no-repeat center center; } </style> Alter the color to something similar to the image Dan
_____________________________
|
|
|
|
Anthony162
Posts: 56 Joined: 1/12/2004 Status: offline
|
RE: Fixed background image - 6/22/2004 10:06:17
Hi again, Ive copied and pasted into Notepad, then into Frontpage html view, the code you just provided. But it still makes no difference to the image (which remains in the centre, but aligned to the top of the screen on entering the page). I must of missed something. Thanks for your help and patience though.
|
|
|
|
Gene
Posts: 2266 From: Cleburne Texas USA Status: offline
|
RE: Fixed background image - 6/22/2004 11:06:42
You could always use absolute positioning in your css file and position it exactly where you want it. x=?, y=?.
_____________________________
Gene White Web Design, Domain Name Registration, Hosting http://www.gwhitedesign.com
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Fixed background image - 6/22/2004 11:23:22
but that won't position it in the center unless you know the exact size of the user's viewport.
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Fixed background image - 6/23/2004 5:01:52
what do you see in your *browser*? is it centred in that (vertically as well as horizontally)?
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Fixed background image - 6/23/2004 6:40:42
well it should work... i'm not sure how much more we can help you unless you can post a url to this example page so we can see it... (you can copy it can call it test.htm or something).
_____________________________
David Prescott Gekko web design
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/23/2004 7:27:31
quote:
but when I go back into preview mode Guys You are all missing the point. He is looking at the web through FP Preview, not a browser, which is why his background doesn't move. Anthony - Save the page and look at it through Internet Explorer/Mozilla/Opera/Netscape. NOT FP Preview Dan
_____________________________
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/23/2004 8:13:12
Ooops, I missed that bit. Sorry. The only other option is to edit it in Notepad to the coding we have given, and I can't remember where the settings are in FP, but you need to set it to preserve Original HTML coding. Dan
_____________________________
|
|
|
|
Giomanach
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
RE: Fixed background image - 6/23/2004 8:19:11
Found it: quote:
Tools > Page Options > HTML Source > Check preserve existing html
_____________________________
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Fixed background image - 6/23/2004 8:59:05
centred for me but it's very pixellated and it's 27k - too big! have you got the original and if so what format(s)?
_____________________________
David Prescott Gekko web design
|
|
|
|
Anthony162
Posts: 56 Joined: 1/12/2004 Status: offline
|
RE: Fixed background image - 6/23/2004 9:15:46
Yes it is centred, but when you enter the page part of the image is obscured behind the banner! Is there no way to sort that? It's a gif image. Yes its pixellated, but I dont mind that. I might resize it/soften it in Paint Sho while I look for a better image anyhow. Its just a tester really.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|