Trouble with tables! :(

liunx

Guest
If I have a table with three rows say...<br />
Each row having two columns say...<br />
<br />
How can I have different column widths in the first row, second row and third row!?<br />
<br />
I'm using Dreamweaver and am pulling my hair out. Becuase it seems impossible to do what I want above.<br />
<br />
Help!<br />
<br />
Thanks.<br />
<br />
<br />
Jam<!--content-->Can't be done with a single table of minimal dimensions. What you're trying to do probably should be done with divs and css since it sounds like more of a page layout than a display of tabular data.<!--content-->You would have to use nested tables:<br />
3 rows of 1 column each<br />
In each column insert a 100%-width table of 1 row and 2 columns.<br />
Then you can have different column widths in each nested table.<!--content-->Another way to "cheat" is to actually use more columns and colspan each of your desired columns.<!--content-->Thanks for the replies.<br />
See the attached file.<br />
(I had to make it a txt file as it wouldn't allow html. Just rename the file to have a html suffix and then you can see the code in a browser.)<br />
I've done what I wanted - but I want to know HOW I can do it simply!<br />
(What I do create lots of cells and merge some of them to give the result shown in my file.)<br />
<br />
I think TheBearMay may be hinting at doing what I've done...<br />
My only problem is that I don't understand what I've done!<br />
:confused: <br />
<br />
I don't wanna start nesting tables... as when I put in data, the data is just slightly not aligned because of the nesting.<br />
<br />
And how would I do it using divs or css?<br />
I can't think how I could do it using those two??<br />
<br />
Thanks.<br />
<br />
<br />
Jam<!--content-->And how would I do it using divs or css?<br />
I can't think how I could do it using those two??<br />
<br />
<br />
I guess little tables are about as good as anything since it looks like all you're trying to do is draw boxes.<!--content-->Originally posted by ray326 <br />
I guess little tables are about as good as anything since it looks like all you're trying to do is draw boxes. <br />
<br />
??<!--content-->There's no context in your sample to indicate whether you're actually trying to display some sort of tabular data or whether you're trying to produce some kind of page presentation or whether you're just drawing boxes. Trying to format a page using tables is a bad idea but there's no way to provide any real guidance without knowing what you're really trying to do.<!--content-->Point taken. :)<br />
<br />
All I want to do is know if I can format my data using tables the way I want to.<br />
I have a million different uses for the tables.<br />
<br />
"Trying to format a page using tables is a bad idea"<br />
Em... are you sure about that?<br />
What other ways would you format data in HTML?<!--content-->Originally posted by jammer20002 <br />
"Trying to format a page using tables is a bad idea"<br />
Em... are you sure about that?<br />
What other ways would you format data in HTML? <br />
<br />
CSS.<!--content-->So are you saying that if I want things lined up and in columns, then I should use CSS?<br />
I still don't see how you can do this in a usable way?<br />
Can you show me some examples?<br />
Thanks.<!--content-->Originally posted by jammer20002 <br />
So are you saying that if I want things lined up and in columns, then I should use CSS?<br />
I still don't see how you can do this in a usable way?<br />
Can you show me some examples?<br />
Thanks. <br />
<br />
Are we talking tabular data, or just plain data like text, images, etc...? It doesn't really matter because you can still use CSS with tables. For tabular data, I would use a table, and some of the table attributes, colspan, cellspacing and cellpadding both set to zero, etc. but beyond that, I would use CSS. For using a pure CSS non-table layout, then look at the links below.<br />
<br />
<!-- m --><a class="postlink" href="http://www.zeldman.com/">http://www.zeldman.com/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.whatdoiknow.org/">http://www.whatdoiknow.org/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.stopdesign.com/">http://www.stopdesign.com/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.meyerweb.com/">http://www.meyerweb.com/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.csszengarden.com/">http://www.csszengarden.com/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.alistapart.com/">http://www.alistapart.com/</a><!-- m --><br />
<br />
Let me know if that's enough because I have plenty more. :D<!--content-->
 
Back
Top