View Full Version : [HTML] i need help putting in my background for my website i do not know how
anthonycerda
06-17-2007, 11:16 PM
i need help on how to copy a background and put it in my web page
scottish2
06-18-2007, 01:29 AM
Is simple Upload the image to your file manager. I personally like to keep all the images in a folder named images just to keep things neat.
Then in your HTML document near the beginning is the followinbg line
<body>
it might have some additional coding but in this line add the following
<body background="URL">
Replace URL with the link to your image. And this will give you the background. If you want the background to be a solid color instead using the below.
<body bgcolor="#ffffff">
ffffff is for white but this can be replaced with any color code to select any color you wish. Here's a neat free program that will help you select the color and give you the colors code.
http://www.colorcop.net/
cr0wonline
06-19-2007, 12:57 AM
Or, if you want to meet XHTML standards, use:
<body style="background-image: url(http://site.com/images/background.png)">
myplace
06-19-2007, 01:41 AM
i suggest you use CSS so that your html/xhtml coding would be neat
you should this in your CSS file:
body {
background-image: url(the url of the image goes here);
}
or
body {
background-color: url(the url of the image goes here);
}
include this in your head tag
<link rel="stylesheet" type="text/css" href="path/URL or your CSS file" />
arenlor
06-19-2007, 07:42 PM
If you're confused you can PM me and I'll help you out, but I suggest the external CSS version too, it's much easier to modify if you want to change every page on your site, and you don't have go through every page each time to change something.
I agree with arenlor. Best way to go about it if you want to pretty much modify all of your pages at once. (Assuming they're all getting it from the same CSS file that is.)
scottish2
06-19-2007, 07:59 PM
I can agree with the CSS option. Another way is to use PHP which is also user friendly with updating. On my site I have like 3 primary files and all I need to do is change these 3 files to update majority of site. I do have a couple custom pages so...but 95%-098% can be updated with adjusting just 3 files including entire site layout.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.