...

View Full Version : Table woes



Steveo31
03-03-2004, 03:45 AM
Hey all... I'm havin a slight prob with my tables. What I need is a table on the left of the text, as a border. I know it's placement of the <table> elements, but I can't get it. Could you take a crack at it?


<table class="normal" width="100%" height="100%" border="0">
<tr>
<td valign="top">
<table width="100%" height="45" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="599" height="45"><img src="images/head.png" width="599" height="45"></td>
<td width="100%" bgcolor="#000000" valign="top">&nbsp;</td>
</tr>
</table>
<table width="100%" height="10" bgcolor="#C9C9C9" cellpadding="0" cellspacing="0">
<tr>
<td height="10">&nbsp;</td>
</tr>
</table>
<table width="80%" height="100%" border="0">
<tr>
<td class="content" valign="top">
<h3>Welcome to Steve Geer
Productions</h3>
<p> Welcome to the productions of Steven Geer. From Photography to
Web development and computer programming, Steve has everything that
you need for your project.</p>
<p><h4>Recent Projects</h4></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
The HTML, body, etc tags are there, but I didn't copy paste em. :)

Thanks

Leprechaun
03-03-2004, 06:00 AM
Most of the time you don't need to nest tables. In this case, I simply added another cell to the left of the text. Is this what you were looking for, or have I misunderstood your question?



<table class="normal" width="100%" height="100%" border="0">
<tr>
<td valign="top">
<table width="100%" height="45" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="599" height="45"><img src="images/head.png" width="599" height="45"></td>
<td width="100%" bgcolor="#000000" valign="top">&nbsp;</td>
</tr>
</table>
<table width="100%" height="10" bgcolor="#C9C9C9" cellpadding="0" cellspacing="0">
<tr>
<td height="10">&nbsp;</td>
</tr>
</table>
<table width="80%" height="100%" border="0">
<tr>
<td valign="top" width="20">&nbsp;</td>
<td class="content" valign="top">
<h3>Welcome to Steve Geer
Productions</h3>
<p> Welcome to the productions of Steven Geer. From Photography to
Web development and computer programming, Steve has everything that
you need for your project.</p>
<p><h4>Recent Projects</h4></p>
</td>
</tr>
</table>
</td>
</tr>
</table>

Steveo31
03-03-2004, 06:12 AM
Thanks, but no go. I think I'll have to come up with a simpler design :)

ronaldb66
03-03-2004, 08:01 AM
Steve,

how about using CSS to create borders instead of abusing tables...? That'll sure make your life a lot easier... :thumbsup:

Update:
I took the trouble of trying out that piece of coding to see what it rendered like, and I fail to see any reason to use any table at all, even if it would be to avoid CSS positioning: there is no positioning!
Steve, could you supply an example (if necessary, a picture) of what you want to accomplish? It should be fairly easy to guide you to the desired result.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum