Click to See Complete Forum and Search --> : Background Image (NO REPEAT) HELP!


numba_one
02-02-2003, 10:31 AM
Ok there is a code out there that will make it a bg image but wont repeat instead of putting it in the <body> tag you put this code in the <head> tag:

<style type="text/css">
body {background-image: url(images/test3.JPG); background-repeat: no-repeat;}
</style>


Well it works great but i use alot of javascript on my page, and some java needs to be in the <head> tag. Well when the bg no repeat code interacts with the javascript code in the <head> section the page is just blank. So im guessin that javascript and the no repeat code cant be in the <head> tag together. Does any one know a way that i could fix this problem. Thanks

khalidali63
02-02-2003, 10:39 AM
So im guessin that javascript and the no repeat code cant be in the <head> tag together.


That is not correct,on the contrary,head would be the most appropriate place for both stylesheet and JavaScript declaration/definition.
Now unless you are re-writing this property at the run time, it will work.And if you are re-writing it at the run time,you should post your code here or a link to the page in question that has all the code in question for some one to identify the erratic code

cheers

Khalid

Da Warriah
02-02-2003, 01:45 PM
also, just double-check that you have an ending </script> tag...you probably think its stupid, but i cant tell you how many times ive forgotten it...