PDA

View Full Version : html help =C



Codex
11-01-2006, 08:30 PM
ok im trying to code my new template and have come accross a problem when loaidng it in firefox(works fine in i.e.):


<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>REMOVED</title>
<style type="text/css">
<!--
body {
background-color : #ebebeb;
background-image : url(images/bg.gif);
margin-top : 0;
margin-left : 0;
margin-right : 0;
margin-bottom : 0;
}
body, td, th {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 9pt;
color: 343F4A;
}
-->
</style>
</head>

<body>
<div align="center">
<table id="Table_01" width="852" height="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25" background="images/overall_side_l.gif">&nbsp;</td>
<td width="802" align="center" valign="top" bgcolor="EBEBEB">
<table id="Table_01" width="800" height="151" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="800" height="26" background="images/overalltop.gif">&nbsp;</td>
</tr>
<tr>
<td width="800" height="125" bgcolor="F4F4F4"><table width="800" height="125" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="315" bgcolor="F4F4F4"><img src="images/logo.gif" alt="Candence Records" width="315" height="125" /></td>
<td width="485" bgcolor="F4F4F4">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>test
</td>
<td width="25" background="images/overall_side_r.gif">&nbsp;</td>
</tr>
</table>
</div>
</body>

</html>

now my problem is that im trying to colour the background on tables, but in firefox the bg colours on tables and cells wont load, but in i.e. they will.

what is an alternate way of doing this?? (im new to css and i dont know how to this in css, isnt there some class or something you can create?? =S ) any help is appreciated.

Codex
11-01-2006, 11:05 PM
ok dont worry people i removed:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and it worked again.

Eric
13-01-2006, 10:41 PM
Type # * File Type File Row Col Flag Message (0 errors, 12 warnings, 4 other)

Warning 5 Untitled Untitled 33 7 0 <table> Anchor "Table_01" already defined
<table id="Table_01" width="800" height="151" border="0" cellpadding="0" cellspacing="0">



Warning 2 Untitled Untitled 29 3 0 <table> lacks "summary" attribute
<table id="Table_01" width="852" height="600" border="0" cellpadding="0" cellspacing="0">

Warning 3 Untitled Untitled 29 3 0 <table> proprietary attribute "height"
<table id="Table_01" width="852" height="600" border="0" cellpadding="0" cellspacing="0">


Warning 4 Untitled Untitled 32 7 0 <td> attribute "bgcolor" has invalid value "EBEBEB"
<td width="802" align="center" valign="top" bgcolor="EBEBEB">




Comment 14 Untitled Untitled 0 0 0 12 warnings, 0 errors were found.


Comment 13 Untitled Untitled 0 0 0 Document appears to be HTML proprietary. Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN"




there may of been 12 warnings, but I only listed 4
This is error messages from HTML Kit
HTML-Kit - http://www.chami.com/html-kit/