Setting Up a Background

I have a simple background I created in Photoshop.  When I select it as a background in FP 2000 it would appear as if my background is not wide enough because frontpage starts to tile it.
I do not want the image tiled, I want it to display the way I have it.  How can I do this.

A better question is how do you create a background that will always fit in the size of a persons web browser.  If this is not possible how can you set it so that it displays fine for 800X600 resolution.

When I refer to the word set I mean what settings for height and width in photoshop would I use and also is there anything special in frontpage that I would need to setup.

Thanks
dl
larockdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AristippusCommented:
You can add this just below the body tag of the html:

<script language="JavaScript1.2">
if (document.all)
document.body.style.cssText="background:white url(YourPic.jpg) no-repeat fixed center center"
</script>

Not only will it not tile, the image will appear to static(not scroll) so that it is always visible complete.

You can change the arguments (no-repeat, center, fixed) to experiment but this should take care of your problem.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
larockdAuthor Commented:
I know the no-repeat fixed keeps the background from moving, and the center will keep the it centered on the page.  What does the second center do?  Also, what are the other commands for that line? LEFT, RIGHT? Stuff like that.


Also, If you were designing a background for an 800X600 screen what size should you make the background graphic?  Assuming it would cover the full 800X600 area.

Thanks
0
AristippusCommented:
The two centers are horizontal/vertical.  Of course, the other options are top/bottom, left/right.

The important thing to keep in mind is file size/download time.  I use several large gifs as backgrounds but I lower the resolution and opacity so that it looks decent.

You can make the image 800x600 if you like.  This will still be centered therefore showing the center of the image in non-maximized browsers and still look good in higher resolutions.  If you want to ensure the image covers the entire page, you can even make the pic 1024x768 with no necessary detail around the outside for viewing in 800x600.  Does this make sense?  I'm just kinda rambling now.

Hope it helps!
0
larockdAuthor Commented:
No it made perfect sense, thanks for the follow up comments...

dl
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.