Topic: What am I doing wrong? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29514" title="Pages that link to Topic: What am I doing wrong? (Page 1 of 1)" rel="nofollow" >Topic: What am I doing wrong? <span class="small">(Page 1 of 1)</span>\

 
krausen
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Sep 2007

posted posted 09-08-2007 21:58

This is the code I have on a site I am working on but for some reason the top table will not expand for the banner to fit correctly.
Also I can't get the tables to fit to the page??? I have very little coding experience and am trying to learn. I have read every tutorial I can find.
But I am also to poor to pay someone to do my site so I must learn on my own.



<html>
<head>
<title>TKF Lures--Jigs, Spinners, and so much more!</title>
</head>

<table cellspacing="1" cellpadding="0" border="0"
bgcolor="black" id="shell" height="400" width="1050">
<tr height="100%"><td colspan="2" bgcolor="white">
<table title="Banner" id="banner" border="0">
<tr><td><img src="banner.php"</td></tr>
</table>
</td></tr>
<tr height="200"><td bgcolor="white">
<table id="navigation" title="Navigation" border="0" height="600" width="100">
<tr><td></td><a href="http://gotkf.com/">HOME</a></tr>
<tr><td></td><a href="http://gotkf.com/store/">STORE</a></tr>
<tr><td></td><a href="http://gotkf.com/FORUM/">FORUM</a></tr>
</table>
</td><td bgcolor="white">
<table title="Content" id="content" border="0" height="600" width="1050">
<tr><td>I hope to god this works and looks ok.</td></tr>
</table>
</td></tr></table>
</html>

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 09-08-2007 22:32

Hello and welcome.

First and foremost, what you are doing wrong is using TABLEs for layout. This is wrong on many levels. You also fail to use HTML tags for their correct purpose. Semantic markup and CSS are the way to go. This might be tricky at first, but it is worth learning. Honest.

Oh and you forgot to close the IMG tag

FYI, your markup should rather look like:

code:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC
	'-//W3C//DTD XHTML 1.0 Strict//EN'
	'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' >
<head>

	<title>TKF Lures--Jigs, Spinners, and so much more!</title>
	<link rel='stylesheet' type='text/css' href='style.css' ></link>

</head>
<body>

	<div id='banner'><img src='banner.php' alt='' /></div>

	<ul id='navigation'>
		<li><a href='http://gotkf.com/'>home</a></li>
		<li><a href='http://gotkf.com/store/'>store</a></li>
		<li><a href='http://gotkf.com/forum/'>forum</a></li>
	</ul>

	<p>Forget about god and the tooth fairy.<br />
	None of them will help you get the job done, properly.</p>

</body>
</html>



Hope that helps,



(Edited by poi on 09-08-2007 22:44)

krausen
Obsessive-Compulsive (I) Inmate

From:
Insane since: Sep 2007

posted posted 09-08-2007 23:25

Thanks for the help.

I will read up on semantic markup and CSS.

I made my site the first time using publisher but it looked like crap and I think it cost me a lot. So I closed it and put the main site under construction and am trying to figure this stuff out on my own.

Don't need a fancy site just one that looks professional and serves its purpose.

Thanks again

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 09-08-2007 23:50

http://w3.org/TR/xhtml1/#C_2
http://w3.org/TR/html401/struct/links.html#edef-LINK
http://www.webdevout.net/articles/beware-of-xhtml

(Edited by reisio on 09-08-2007 23:51)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu