Argh! This is mad!

admin

Administrator
Staff member
Hey there.<br />
I hope someone can help me.<br />
<br />
I'm validating my HTML theme for our LAN site, I have attached it, and I get these errors on w3.org:<br />
<br />
<br />
Line 29, column 15: there is no attribute "BACKGROUND" (explain...). <br />
<td background="theme/forums/images/pl_bdr_3.gif" class="gensmall" width="100%"><br />
^<br />
Line 89, column 26: there is no attribute "HEIGHT" (explain...). <br />
<table width="150" height="23" border="0" cellpadding="0" cellspacing="0" backgr<br />
^<br />
Line 89, column 85: there is no attribute "BACKGROUND" (explain...). <br />
...dding="0" cellspacing="0" background="theme/images/block-title.gif"><br />
<br />
<br />
I've tried doing it with CSS, but then the images disappear as they made up the "edges" of the tables.<br />
My CSS validates as fine at the moment, both are attached.<br />
<br />
IF you can help me to get this compliant, it would be gratefully appreciated!<br />
<br />
CSS:<br />
<br />
<br />
/* $Id: style.css 5.3 2003/10/27 01:31:03.<br />
*/<br />
<br />
FONT {<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 10px;<br />
}<br />
<br />
TD { <br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 10px;<br />
}<br />
<br />
BODY { <br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 10px;<br />
}<br />
<br />
P { <br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 10px;<br />
}<br />
<br />
DIV { <br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 10px;<br />
}<br />
<br />
FORM { <br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 10px;<br />
}<br />
<br />
A:link { <br />
background : none repeat;<br />
color : #4682b4;<br />
font-size : 10px;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
A:active { <br />
background : none repeat;<br />
color : #4682b4;<br />
font-size : 10px;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
A:visited { <br />
background : none repeat;<br />
color : #4682b4;<br />
font-size : 10px;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
A:hover { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 10px;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
.title { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 14px;<br />
font-weight : bold;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
.content { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 10px;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
}<br />
<br />
.block-title { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 10px;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
}<br />
<br />
.storytitle { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 12px;<br />
font-weight : bold;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
.option { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 10px;<br />
font-weight : bold;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
.tiny { <br />
background : none repeat;<br />
color : #000000;<br />
font-size : 10px;<br />
font-weight : normal;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
.small {<br />
background : none repeat;<br />
color : #000000;<br />
font-size : 9px;<br />
font-weight : normal;<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
text-decoration : none;<br />
}<br />
<br />
.texte {<br />
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;<br />
font-size : 12px;<br />
color : #000000;<br />
}<br />
<br />
input , textarea , select {<br />
color : #000000;<br />
font : normal 10px Tahoma, Arial, Helvetica, sans-serif;<br />
border : 1px solid #202020;<br />
border-color : #000000;<br />
}<br />
<br />
/* Blue-type Buttons. */<br />
<br />
input.mainoption {<br />
background-color : #C9E1F3;<br />
font : normal 10px Tahoma, Arial, Helvetica, sans-serif;<br />
border : 1px solid #202020;<br />
border-color : #000000;<br />
}<br />
<br />
input {<br />
text-indent : 2px;<br />
}<br />
<br />
/* index.php Log In field<br />
This part of style.css is (c) of PHPbb.com<br />
*/<br />
<br />
.forumline {<br />
background-color: #FFFFFF;<br />
}<br />
<br />
td.catHead {<br />
height: 29px;<br />
border-width: 0px 0px 0px 0px;<br />
}<br />
<br />
td.row1{ background-color: #EFEFEF; }<br />
td.row2{ background-color: #DEE3E7; }<br />
td.row3{ background-color: #D1D7DC; }<br />
<br />
.gensmall { font-size : 10px; }<!--content-->Rather than fiddling around in the dark can you zip the images too? perhaps a screen shot of how it should look? thanks<!--content-->Sure sorry, I did a screenshot as the images are quite large and lots of them.<br />
<br />
Thanks again.<!--content-->Are you currently doing a screenshot or have I missed something?<!--content-->heresorry about the quality, trying to get it to fit on here.<!--content-->Right. So the pictures above and below each item are the same for each box? (as in the same file for all the tops, same file for all the bottoms)<br />
<br />
Could you just insert the image? This would remove the need for height and background attributes.<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"image.gif" alt="Hello Charles!" style="width: xxpx; height: xxpx; padding: 0px; margin:0px;"><br />
<br />
If there is text to go in front of the image, <br />
<br />
how about in your css:<br />
(assumming gensmall is the class for all the rounded tops)<br />
td.gensmall {<br />
background: #ffffff url(../../graphics/theme/forums/images/pl_bdr_3.gif) left no-repeat;<br />
}<br />
<br />
I would like to suggest you move your images and css into folders closer to the actual pages.<br />
e.g. put styles into a folder called styles, so your link in html would be<br />
<br />
<link rel="stylesheet" type="text/css" src=http://www.webdeveloper.com/forum/archive/index.php/"styles/style.css"><br />
<br />
then put images into a folder called images<br />
<br />
so from your stylesheet you would refer to them as<br />
<br />
background-image: url(../images/back,gif);<br />
<br />
<br />
That's just to make your life easier. Maybe try experimenting on a new page before you use it in your design. <br />
<br />
In your external stylesheet your path to the images is from your external stylesheet, not from your html document.<!--content-->Okay thanks.<br />
They're the only errors i haven't been able to "fix" to date, but i'll try what you said thanks.<!--content-->
 
Back
Top