kaz Posted December 15, 2005 Share Posted December 15, 2005 Hi all,it's been a while since I spoke to you guys. I'm designing a newsletter for our ICT Directorate to be posted on our University website within the next couple of hours. Now I want give the white space behind the main page a christmas background. Where in the code do I put "Background image? I ask this question because I put this in the body tag and the Christmas image completely removed the page, turning the entire page into a christmas decoration. Please let me know as soon as possible as my deadline is fast approaching. The link for the newsletter is http://www.geocities.com/kkisie2000/. By the way forget the look of the newsletter as this is a temporary link.thanx kaz Link to comment Share on other sites More sharing options...
Kcarson Posted December 15, 2005 Share Posted December 15, 2005 Well if doing the background in HTML it woudl be somethine like this: <body background="image_name.gif"> For CSS: body{ background-image: url('image_name.gif');background-repeat: no-repeat;background-position: center; } For references see:HTML: http://www.w3schools.com/html/html_backgrounds.aspCSS: http://www.w3schools.com/css/css_background.asp Link to comment Share on other sites More sharing options...
aspnetguy Posted December 15, 2005 Share Posted December 15, 2005 you may need to adjust the background-repeat depending on your imageyour options are background-repeat:no-repeatrepeat-yrepeat-xbackground-position:topbottomleftrightcenter you can also use a combination on positioning, eg background-position: top left; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now