PDA

View Full Version : Background images


brisa_main
10-07-2005, 10:02 AM
Hi

I have set up a website that has a table that is 800x500 centered on the page.
It has a background jpeg image that has an image running across the top of it.
The person i am doing it for has the same browser as me (internet explorer) but his is repeating the image (like the table has been dragged down too much) and theres a small section of the top again.
is there any way to stop the box repeating the bg image? or a way round it?

Creative Insanity
10-07-2005, 10:56 AM
yes..

<body background="images/image.jpg" bgproperties="fixed">
Now make you image the same size as the DIV in the frame.

But I think it still may repeat once you get txt below the bottom of the image as a BG is a tiling image or colour.

davidj
10-07-2005, 11:11 AM
use CSS

<style type="text/css">
<!--
.bg {
background-image: url(images/yourImageHere.jpg);
background-repeat: no-repeat;
}
-->
</style>


then assign the class (bg) to the object


<body class="bg"
<td class="bg"
<table class="bg"