how do u change background color??/
how do u change background color??/
you can use
<body bgcolor="(Color name)">
<body bgcolor="#(Color hex)">
or a css file:
body { background-colorColor name); }
body { background-color:#(Color hex); }
Last edited by masshuu; 12-31-2007 at 06:07 PM.
Just leading the flock.LivewireMasshuu ------ carl6969descalzo ------------------- Smith6612Bryon--------------------------------- CoreyIf you find any post helpful or useful, duck
\ / Thisfor that post and rep it up.
background colour starts with the "body" tag in html.
you can use as like the following.
or you can also use background images like the below script.<body bgcolor="red">
in the above script: the picture flag.jpg sould be within the same folder of this html file. if not use as below.<body background="flag.jpg">
please be carefull to denote the file extention.<body background="c:/my doucuments/my folder/flag.jpg">
eg. if the pic. is a jpg or gif.
you can see this by rightclicking and seeing the properties tab.
ther see the phrase: "type of the file:"
if it is "JPEG" then use ".jpg" extention. if gif,use :".gif"
byeeeeeeeee
best wishes.
Last edited by naim4u; 01-15-2008 at 08:19 PM.
CSSHTML
- body { background-color:color name; }
- body { background-color:#color hex; }
- body { background-image:url(image.gif); }
- <body bgcolor="color name">
- <body bgcolor="#color hex">
- <body background="image.gif">
Last edited by coolv1994; 01-15-2008 at 08:34 PM.
Note that you can also change the background color in tables, in case you decide to build your layout with tables.
<table bgcolor="#color hex">
You can also use different colors in each cell of the table, it will always be <td bgcolor="#color hex"> so you can have more than 1 background color in your webpage.
you can also use a rgb color format for css:
body {background-color: rgb(255,255,255);}
If you want more info visit this link and at the bottom of the tutorial it links you to other tutorials that specifically tell you how to do certain CSS http://forums.x10hosting.com/tutoria...css-guide.html