View Full Version : table in a table
comicw
09-06-2002, 11:05 PM
Hi,
I know how to 'draw' the basic lines of a table and how to divide cells and stuff, but how can I create a table inside an existing table with a different color or different border?
Thanks!
Roy Sinclair
09-06-2002, 11:13 PM
It's called "nesting", you place the table inside a TD element of another table.
<table>
<tr>
<td>
<table>
...
</table>
</td>
</tr>
</table>
hairynugs6382
09-06-2002, 11:23 PM
You can nest tables inside of tables inside of table if u want
example
<html>
<body>
<table>
<tr>
<td>
<table>
<tr>
<td>
<table>
<tr>
<td>
Blah Blah Blah Blah....Blah BlahBlah BlahBlah Blah...Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah.
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
comicw
09-06-2002, 11:32 PM
And how do I put an image in? Ive tried it this way, but then the Image doesn't want to center (align), and when I make it absolute it jumps all over the place...
Roy Sinclair
09-06-2002, 11:39 PM
<img src="someoldthing.jpg" style="display:block; text-align: center;">
comicw
09-07-2002, 12:16 AM
does the <style: display="block"> tag insert also work for other things than images? Is it possible to lock the position of everything on your site (like tables) this way?
Thanks for the quick responses, it helped!
hairynugs6382
09-07-2002, 12:59 AM
Yes you can use the STYLES to position pretty much every thing
say u have an image u want 200px from the top!
<img src="image.jpg" style="top:200px;">
same for tables
<table style="top:200px; left:100;">
<tr><td>Blah Blah Blah...</td></tr>
</table>
same thing for bottom left and right to learn more about STYLE click on the following link!http://www.w3.org/TR/REC-CSS2/visuren.html#positioning-scheme
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.