Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Code For This Table Layout?, html help needed
snlildude87
post Jun 3 2005, 02:08 AM
Post #1


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



Hey, can anyone help me generate the code needed for a table that would look something like this?

CODE

 -----------------------------------------------------
|                                   |---------------- |
|                                   |---------------- |
|                                   |---------------- |
|                                   |---------------- |
|                                   |---------------- |
|                                   |---------------- |
 ------------------------------------------------------


Thanks in advance!!
Go to the top of the page
 
+Quote Post
fffanatics
post Jun 3 2005, 02:44 AM
Post #2


Privileged Member
*********

Group: [HOSTED]
Posts: 937
Joined: 14-April 05
From: West Chester, PA
Member No.: 5,636



yeah its simple

CODE

<table>
<tr>
 <td></td>
 <td>
  <table>
   <tr>
     <td></td>
   </tr>
   <tr>
     <td></td>
   </tr>
   <tr>
     <td></td>
   </tr>
   <tr>
     <td></td>
   </tr>
   <tr>
     <td></td>
   </tr>
   <tr>
     <td></td>
   </tr>
   <tr>
     <td></td>
   </tr>
  </table>
 </td>
</tr>
</table>  


so just use this code and insert the text or what not in the empty td's. By the way what i did was i created one table at first that would handle the two columns. Then i created a single row. In it you can fill whatever you want just by adding it between the <td> and <\td> tags. Then i created a second table inside the right column that its self has 7 rows of nothing at this point. Just add the content between the <td> and </td> tags of the second table. Therefore, for instance you wanted to add another single row below what you have drawn, all you would do is create another row in the main table with <tr> and </tr> and inside of it you would create one column and make it span the table's two columns with <td colspan="2"> content </td>

Hope this helps
Go to the top of the page
 
+Quote Post
beeseven
post Jun 3 2005, 02:49 AM
Post #3


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Here you go:
CODE
<table style="width: 99%;" border="5">
<tr>
 <td rowspan="7" colspan="2" style="width: 66%;">text</td>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
</table>
Go to the top of the page
 
+Quote Post
beeseven
post Jun 3 2005, 02:52 AM
Post #4


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Very sorry to double post, but I was fixing my code so I didn't see someone had posted.

The w3c doesn't really like putting tables inside tables, and it works better in most browsers to use rowspan and colspan instead.
Go to the top of the page
 
+Quote Post
Tyssen
post Jun 3 2005, 02:59 AM
Post #5



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(beeseven @ Jun 3 2005, 12:52 PM)
The w3c doesn't really like putting tables inside tables, and it works better in most browsers to use rowspan and colspan instead.

The W3C doesn't like the use of tables for presentation at all.
You'd be better off doing:

CODE
<div id="main">
<div id="right">
Content
Content
Content
Content
Content
Content
</div>
</div>

#right {float: right;}

Or if you have to use a table, do the same as above but apply the id to the internal table so it's still floating right. Then you can use other CSS to play around with the padding/margins etc to get it exactly where you want.
Go to the top of the page
 
+Quote Post
FaLgoR
post Jun 8 2005, 12:06 PM
Post #6


Super Member
*********

Group: Members
Posts: 217
Joined: 2-January 05
Member No.: 3,084



CODE

<table>
<tr>
<td width="500">
Left contect goes here
</td>
<td width="150">

<table>
<tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>

</table>
</td>
</tr>
</table>

Try this one, I think it will help you smile.gif
Go to the top of the page
 
+Quote Post
snlildude87
post Jun 9 2005, 07:42 PM
Post #7


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



QUOTE(beeseven @ Jun 2 2005, 11:49 PM)
Here you go:
CODE
<table style="width: 99%;" border="5">
<tr>
 <td rowspan="7" colspan="2" style="width: 66%;">text</td>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
<tr>
 <td style="width: 33%;">text</td>
</tr>
</table>

*

Yep. I tried this one first because beeseven has a good reputation for posting the correct code for other people, and it worked for me. Thanks!! smile.gif


QUOTE(Tyssen @ Jun 2 2005, 11:59 PM)
The W3C doesn't like the use of tables for presentation at all.
You'd be better off doing:

CODE
<div id="main">
<div id="right">
Content
Content
Content
Content
Content
Content
</div>
</div>

#right {float: right;}

Or if you have to use a table, do the same as above but apply the id to the internal table so it's still floating right. Then you can use other CSS to play around with the padding/margins etc to get it exactly where you want.
*

I decided to quit the table layout altogether because I believe tables should only be used to display tabular data, and I will stick to my guns. and plus, there were some other issues with my code that conflicted with the table code


QUOTE(FaLgoR @ Jun 8 2005, 09:06 AM)
CODE

<table>
<tr>
<td width="500">
Left contect goes here
</td>
<td width="150">

<table>
<tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>

</table>
</td>
</tr>
</table>

Try this one, I think it will help you smile.gif
*

I tried this one, but the tables did not display side-by-side. In other words, the second table in your post appeared below the other table.

Anyways, I decided to code my navigation with the help of CSS. I set the top value in CSS to 0px, and position to absolute, so that the navigation will stay at the top no matter where my visitors scroll. This only works in Firefox, but the navigation is still visible in Internet Explorer.

I'm closing this thread now because my question has been answered a long time ago. Thanks to everyone who contributed!
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. where did you learn html from?(85)
  2. Whats The Best Code?(32)
  3. Redirect Code Help(8)
  4. Html Cool Codes?(6)
  5. Html Editor(19)
  6. Do You Know Html?(65)
  7. Html Question Concerning Pre Tag And Code Tag(8)
  8. Creating Link In Html - Help Me With This!(5)
  9. Wanting To Touch Up/learn My Html Again(27)
  10. Transparent Roll Over Pictures(4)
  11. How To Display Php Code [resolved](8)
  12. Help With Html(11)
  13. Ok Background Help Please(4)
  14. Some More Help With Html(2)
  15. Html Help(6)
  1. Help With Css/html Layout(5)
  2. Wanna Learn Html From Scratch(5)
  3. Login In Using Html(12)
  4. Centered Div Layout Issues(2)
  5. Email Form Code(8)
  6. I Need Help With This Code(3)
  7. Html Application Form(6)
  8. Best Way To Protect Html Form Fields(3)
  9. Applet Code(0)
  10. Html Div Help [resolved](1)
  11. Html Ascii Codes - A Complete List(3)
  12. Help Making A Web Adress Bar Using Html/js(9)
  13. Some Questions On Html(6)