PDA

View Full Version : background help...


Warehouse
12-17-2003, 05:11 PM
<html>

<head>
<title>:: Warehoused ::</title>
</head>

<center><font face="arial" color="#666666">Warehoused</font></center>
<body>
<bgcolor="#808080">
<font face="arial" color="#666666">blah</font>


</bgcolor>
</body>

</html>

Why does it not want to have the right background color. Probably something simple.

DCElliott
12-17-2003, 06:16 PM
Warehouse

It would appear that you are just learning html. If that is the case, you have a big advantage because you can learn the new way of doing it - the XHTML way (and no, that is not the html used for porn sites)

XHTML is the "new school" way of writing and uses a better approach where your HTML is very simple and properly structured according to standards, and the look of your page is governed through something called styles. For example, here is your sample in XHTML. Paste this code into your editor and see how it looks.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>:: Warehoused ::</title>
<style type="text/css">
/*<![CDATA[*/
body {background-color:#808080; color:#666666;}
div.c1 {color: #666666; font-family: arial; text-align: center}
/*]]>*/
</style>
</head>
<body>
<div class="c1">Warehoused</div>
<p>blah</p>
</body>
</html>

If you are interested, we can take this further.

DE

jd_nelson
12-20-2003, 11:15 AM
I have played with html code on occasion and have done ok with it. Have used css a few times but not much. I understand the idea behind css but not alsways able to implement it.

I am considering diving deeper into the web world and would be interested in a deeper explantion DC.

IF there are any tutorials or links you would like to point me to that would be greatly appreciated.

Thank you

JD

Joe the Large
12-20-2003, 11:21 AM
The best tutorials I've ever seen are at W3 Schools (http://www.w3schools.com) .
Start with their HTML tutorial, move on to the XHTML tutorial, and then do the CSS tutorial, in that order.

HTH

Joe

DCElliott
12-20-2003, 01:12 PM
CSS tutorial list: http://www.thefixor.com/code_css.php#tutor

HTML tutorials - this is one of the best for pacing you through: http://www.davesite.com/webstation/html/

DE

Warehouse
12-21-2003, 12:03 AM
Heh figured it out. So the best way is start to learn xhtml now?

I will start on that asap.