
January 15th, 2000, 07:42 AM
|
|
Junior Member
|
|
Join Date: Jan 2000
Location: Oslo, Norway
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by mrtesting:
how to format a jpg file to fit as a body background image ?
i am trying to put a image in the
<body background="book.jpg">
but the image appears only partially.
The top left side since it's height is so tall appears and it also appears on the right.
but the bottom side did not appear at all.
what size shoud i put it as ?[/quote]
Answer:
Depends on the resolution on the screen of those who are watching it...
Try to set your own screen resolution to 800x600 to be shure it is looking good also for those with that low resolution. Make the jpg as big as you want it, then add the following text in your HTML source (somewhere in between the <head> and </head>:
<style>
<!--
BODY {background-image: url(book.jpg); background-repeat: no-repeat; }
-->
</style>
Be shure to change the "book.jpg" -part with the name and path of your jpg, if it has another name (and another path)...
Then your background jpg will show only once...
Hope that helped you out.
------------------
Pelt
|