how do u change background color??/

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
you can use
<body bgcolor="(Color name)">
<body bgcolor="#(Color hex)">

or a css file:
body { background-color:(Color name); }
body { background-color:#(Color hex); }
 
Last edited:

naim4u

New Member
Messages
51
Reaction score
0
Points
0
background colour starts with the "body" tag in html.

you can use as like the following.
<body bgcolor="red">

or you can also use background images like the below script.

<body background="flag.jpg">
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="c:/my doucuments/my folder/flag.jpg">
please be carefull to denote the file extention.
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:

coolv1994

Member
Messages
508
Reaction score
0
Points
16
CSS
  • body { background-color:color name; }
  • body { background-color:#color hex; }
  • body { background-image:url(image.gif); }
HTML
  • <body bgcolor="color name">
  • <body bgcolor="#color hex">
  • <body background="image.gif">
 
Last edited:

Dra_chan

New Member
Messages
27
Reaction score
0
Points
0
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.
 
Top