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?

Recommended Answers

All 6 Replies

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

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

with a hexidecimal value, such as

<body bgcolor = #FFFFFF>

will produce a white background

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. :)

lol, for my information as well, I didn't know that

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.

lol, for my information as well, I didn't know that

Hey This thread is old but Here is something new for new HTML comers learn Html tags for background image. I hope you will enjoy learning HTML in easy way.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.