PDA

View Full Version : background repitition


TooLPrincessBlaze
05-30-2002, 09:09 PM
Okay, this is probally a stupid question, (one that nobody I've talked to knows the answer too.) How do you not repeat a background? Is it like < body background="...gif" /repeat > or something?

DaveK
06-01-2002, 02:05 PM
Well, you could put the image as a background in a table cell.

But this will probably work better...


Put this in the HEAD of your page.

&LT;style type="text/css"&GT;
#divBackground{
position:absolute; top:1px; left:1px;
visibility:visible;
z-index:1;
}

&LT;style type="text/css"&GT;
#divMain{
position:absolute; top:1px; left:1px;
visibility:visible;
z-index:2;
}

&LT;/style&GT;

Then in the BODY of your page,

&LT;div id="divBackground"&GT;
put your background image here
&LT;/div"&GT;

&LT;div id="divMain"&GT;
put the rest
of your page
here
&LT;/div"&GT;