Click to See Complete Forum and Search --> : weird repeat?


DanUK
07-09-2003, 11:19 PM
Hello.
From this line of code, can you tell me what I need to do to stop it repeating the image should the document get longer?
I wanted the background image to only appear once, but when the document gets longer, it 'continues' below, ... the line of code relevant is:

<td width="141" bgcolor="5F6F7F" valign="top" background="images/logo.jpg"></td>

thanks.

freefall
07-09-2003, 11:26 PM
<td width="141" bgcolor="5F6F7F" valign="top" background="images/logo.jpg" style="background-repeat: no-repeat; background-attachment: fixed;"></td>


That'll get you 1 image, in 1 place, then you might also want to specify a bgcolor to fill in the empty space

- Ian

DanUK
07-09-2003, 11:28 PM
brillliant thank you!

xataku_nakusute
07-09-2003, 11:33 PM
its in css....but whateva
in your <HEAD> section:

~

<style type="text/css">
body
{
background-repeat: no-repeat;
}
</style>

~

and then insert this after your </HEAD> tag:
<BODY background="img_url.jpg" any other body properties.....>

there ya go

XaTaKu_NaKuSuTe

http://www.xataku.tk/

xataku_nakusute
07-09-2003, 11:35 PM
sorry bout that, forget the ~'s

freefall
07-09-2003, 11:38 PM
yeah good for you. style="" is css, it doesnt need to be in a style tag. this way if he only wants this TD to have the background effect, then he wont have to screw around each time making sure each other one doesnt

- Ian

xataku_nakusute
07-10-2003, 12:30 AM
hmm....very true.....sorry bout that guyz

)(aTaKu_(\)aKuSuTe