I want to link all the pages I want to have a certain background image linked to a single css file. How do I do that? Thanks for any help, JF
I want to link all the pages I want to have a certain background image linked to a single css file. How do I do that? Thanks for any help, JF
-JF
Next add this to the css file: (if you're adding the background to a page, not a div):Code:<link href="path/to/stylesheet" media="screen" rel="Stylesheet" type="text/css" />
It's as simple as thatCode:body { background-image:url(relative/path/to/image/from/css/file); }
HTH
Last edited by Medyman; 01-30-2008 at 06:06 PM. Reason: misplaced ;
Is there anything that can make this not work? All my references are correct, the address's are correct, everything is spelled correctly, but it doesn't work. Any thoughts? I'll keep testing different things. Thanks for any help, JF
-JF
So, it does work, I just need to figure out what is wrong with my code. Thanks, Jf
The reason it did not work is because I had the <style type="text/css"> in my css file. It didn't like that very much. thanks for the help, JF
-JF
Bookmarks