table and graphics query - almost certainly a noob question

liunx

Guest
Hi All. Uh, I just put up a brief personal introduction in the Introductions section so I'll cut to the chase. <br />
<br />
One of the ways I tend to learn stuff is by setting myself a random hypothetical task and then trying to resolve it. This can be a disaster as I often set myself stuff that takes me forever to resolve and makes me learn ridiculous amounts of new material that I never knew existed in order to solve the problem I set myself. It is one such hypothetical that brings me here for help. Here's a link that should illustrate my problem:<br />
<br />
<!-- m --><a class="postlink" href="http://www.angeltowns.com/members/bolccg/again.htm">http://www.angeltowns.com/members/bolccg/again.htm</a><!-- m --> <br />
<br />
I've cut a picture (of the band Tenacious D, who truly do rock) into four bits and I was trying to use a table to put the parts seamlessly back together again. However I can't get one part (02.jpg, top right corner) to line up no matter what I do. Owing to the way that I placed the cuts (producing lengths either one or two thirds of the original total for that dimension) I know that using % for the column and row dimensions will produce some white space (owing to not being able to put a third or two thirds as a precise %). That I can live with because I know why it's there and I can avoid it by just cutting the picture into more useful bits. Oh and I've got borders on for illustrative purposes, I know how to turn them off so that's not a problem.<br />
<br />
So that's my query - if anyone can tell me why the bottom table works and the top one doesn't then I'd be very grateful. I'm pretty sure that this is a query for this section but if I'm wrong sorry for the hassle and can someone put me to the right place. Thanks,<br />
<br />
Davois.<!--content-->A wrongle placed tag... see error number 2 out of the 6 errors:<br />
<br />
<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.angeltowns.com%2Fmembers%2Fbolccg%2Fagain.htm&charset=iso-8859-1+%28Western+Europe%29&doctype=HTML+4.01+Transitional&ss=1&outline=1&sp=1&verbose=1">http://validator.w3.org/check?uri=http% ... &verbose=1</a><!-- m --><br />
<br />
<br />
Line 12, column 5: end tag for element "TR" which is not open (explain...).<br />
<br />
</tr><br />
<br />
<br />
<br />
<br />
Also the valign="bottom" on only ONE cell.<!--content-->Hi giz, thanks for the input. I've updated the code a bit to take into account the errors that you pointed out. I still have two left - one to do with the height and one to do with not defining the doctype correctly or something. The table doesn't seem to work still. So now I have three queries:<br />
<br />
What's wrong with the table still?<br />
<br />
Why is the height problem flagged by the validator?<br />
<br />
How do I put the doc type in? I've tried duplicating the code it appears to suggest but the validator still seems to be huffy. <br />
<br />
Thanks again.<br />
<br />
Davois.<br />
<br />
*edit* so there's no height attribute huh? hmm, seems like there would be. oh well, one query down at least.<br />
<br />
*edit2* well the height attribute certainly seems to affect the table. I'm lost and getting rather confused so I'm just going to go to bed I think. Any advice still welcome!<!--content-->the height attribute still works, but it's depreciated. Which I think means it will stop working in the new versions of HTML.<!--content-->Hi hockyfan641, thanks for the hint - that would have probably driven me mad. Any idea what's replacing it? Am I supposed to use a style sheet or something instead? Rather annoying that the validator is quite so brusk. It could have just said "this is deprecated" rather than basically "WTH is this?!" as it did. Oh well.<!--content-->giz could help you with this more than me, but im' pretty sure to make a table a certain height without using the height attribute is to put a cell(td) inside of it with a set height, which is a valid attribute for a <td> tag.<!--content-->Set the height by using an HTML attribute on the <td>, or by using CSS, or by using a background image on the <td> tag.<br />
<br />
<br />
<br />
The validator can be cryptic, but you'll pick it up soon enough.<br />
<br />
It would also give the same message if you had an attribute called widget or fred in your code. It simply tells you that that attribute does not exist.<br />
<br />
Sometimes you look and it has flagged up an attribute that does exist, but when you look closer, you actually mis-spelled the attribute: hieght is a favourite.<!--content-->
 
Back
Top