0

how do i make the backround of the page a different color than the centered text just like on the page i mentioned in my first post?

5
Contributors
6
Replies
13
Views
13 Years
Discussion Span
Last Post by tarwara
0

Well it works like this.

<HTML>

<Head>
<title>Zorba</title>
</head>
<Body bgcolor = (hexadecimal code referring to your background colour of choice!)>

annnd for the table

<table width="90%" align="center" bgcolor =(hexadecimal code referring to your background colour of choice!)>
<tr><td align="left" valign="top">
 
	 PAGE CONTENT HERE
 
</td></tr>
</table></body>
</html>

hexidecimal values can be found at http://www.december.com/html/spec/color.html or http://www.web-source.net/216_color_chart.htm , give us the link to your site so I can check it out :D

Happy coding!

Slade

0

replace (hexadecimal code referring to your background colour of choice!)

with a hexidecimal value, such as

<body bgcolor = #FFFFFF>

will produce a white background

0

Just for cuddlers89's information: You don't necessarily need a hexidecimal code for color, you can also use the color name for most basic colors like white red blue black green yellow orange; etc. :)

0

You can also use style sheets:

<html>
<head>
<style>
body {
   background: colour name or hex value;
}

for tables:

table {
   background: colour name;
}
</style>
</head>

You can also link to external style sheets.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.