Inserting new cells in a pre-existing...
I am trying to find a way to insert a cell in a pre-existing table. You can see the following examples in the page linked to. I'm using the CoffeeCup html editor 2008. I created these tables with Kompozer (a spin-off of the old Netscape Navigator Composer); I opened the page up in HTML Editor but I didn't see any way to do what I want. Is doing what I want, the impossible dream?
For example, you can see this page:
http://www.paulrittman.com/history.html#2A/117
I would like to insert new cells (with links to new docs) inside this table. What happens when I try it in Kompozer is that I push every cell in that same row, to the right, which creates a new column. Is there any way I can create a new cell, and simply have every cell after that, move over one, without creating a new column--in other words, in the 117 table, the link to "French and Indian War" would be in the bottom right cell?
For example, you can see this page:
http://www.paulrittman.com/history.html#2A/117
I would like to insert new cells (with links to new docs) inside this table. What happens when I try it in Kompozer is that I push every cell in that same row, to the right, which creates a new column. Is there any way I can create a new cell, and simply have every cell after that, move over one, without creating a new column--in other words, in the 117 table, the link to "French and Indian War" would be in the bottom right cell?
prr,
This is the code for that specific row:
<tr><td><a href="Hamilton%27sProgram.pdf">Hamilton's Economic Program</a></td><td><a href="ClayAmericanSystem.pdf">Clay and the American System
Speech</a></td><td><a href="HumeExcerpts.pdf">Hume
Excerpts<br></a></td><td><a href="EnlightenmentChart.pdf">Enlightenment Chart</a></td><td><a href="F&IWarChart.pdf">French and Indian War Chart</a></td><td></td></tr>
Notice the last three tags are <td></td></tr> This code is the last empty cell and the closing row tag. If you want to insert a cell, you will have an extra cell unless you remove the right empty cell. So try removing the final <td></td> and then insert the cell you want in the location you want it.
This is the code for that specific row:
<tr><td><a href="Hamilton%27sProgram.pdf">Hamilton's Economic Program</a></td><td><a href="ClayAmericanSystem.pdf">Clay and the American System
Speech</a></td><td><a href="HumeExcerpts.pdf">Hume
Excerpts<br></a></td><td><a href="EnlightenmentChart.pdf">Enlightenment Chart</a></td><td><a href="F&IWarChart.pdf">French and Indian War Chart</a></td><td></td></tr>
Notice the last three tags are <td></td></tr> This code is the last empty cell and the closing row tag. If you want to insert a cell, you will have an extra cell unless you remove the right empty cell. So try removing the final <td></td> and then insert the cell you want in the location you want it.
Thanks, Bill, for the quick reply. OK, you showed me how to insert a new field on that last row (with the blank cell on the bottom right), so that French and Indian War was now in the bottom right cell.
The real challenge is now to be able to insert a new cell in one of the higher rows. Let's say I want to insert a cell on the second-from-the-top row, immediately between, say, "Events leading to the revolution" and "declaration of Independence."
Is there any way I could do this, and not have the last one one that row, Adam Smith on Economics of Colonies, push to the right and have it form a new column? How could I get it so that Adam Smith is automatically pushed onto the first cell on the left, of the third row?
I mean, even if there was something like drag-n-drop functionality that would let me drag a cell onto a new row, that would be wonderful; barring that, some way to code it in.
The real challenge is now to be able to insert a new cell in one of the higher rows. Let's say I want to insert a cell on the second-from-the-top row, immediately between, say, "Events leading to the revolution" and "declaration of Independence."
Is there any way I could do this, and not have the last one one that row, Adam Smith on Economics of Colonies, push to the right and have it form a new column? How could I get it so that Adam Smith is automatically pushed onto the first cell on the left, of the third row?
I mean, even if there was something like drag-n-drop functionality that would let me drag a cell onto a new row, that would be wonderful; barring that, some way to code it in.
prr,
There is a way to have a cell move to the down and start on the left. The way that is done is to have a single row in the table and have a maximum width for the site.
Your code follows the traditional way of making tables with each row starting with a <tr> and each row ending with a </tr>. If you change that you will need to specify the width of your cells, or the cells will have various sizes depending on what is actually in the cell.
What you are talking about is a complete re-write of your tables. If that is what you want to do, then we need to know:
How are you with CSS? And HTML code?
I will play around with some CSS and HTML and see if I can get something that will do what you want.
There is a way to have a cell move to the down and start on the left. The way that is done is to have a single row in the table and have a maximum width for the site.
Your code follows the traditional way of making tables with each row starting with a <tr> and each row ending with a </tr>. If you change that you will need to specify the width of your cells, or the cells will have various sizes depending on what is actually in the cell.
What you are talking about is a complete re-write of your tables. If that is what you want to do, then we need to know:
How are you with CSS? And HTML code?
I will play around with some CSS and HTML and see if I can get something that will do what you want.
Bill, my CSS is non-existent and my HTML is almost as bad. I created the site with Kompozer, which lets you work in WYSIWYG mode. I only dipped into the source for occasional copy-and-paste snippets.
I was primarily hoping that CoffeeCup itself had something built-in that would help me do this--my next stop would be a FrontPage forum to see if I could get that with MS FrontPage.
I have already had someone else run some javascript/css for me and I still wasn't able to get it, so I don't think this would be the most productive use of your time. But I surely do appreciate your offer.
I was primarily hoping that CoffeeCup itself had something built-in that would help me do this--my next stop would be a FrontPage forum to see if I could get that with MS FrontPage.
I have already had someone else run some javascript/css for me and I still wasn't able to get it, so I don't think this would be the most productive use of your time. But I surely do appreciate your offer.
I have not found a way to do what you want automatically. Everything I tried allowed the cells to have varying widths.
I have to study for a test, but if you don't find a solution, I will continue trying and if I find a way, I will post here.
I have to study for a test, but if you don't find a solution, I will continue trying and if I find a way, I will post here.
OK thanks a lot Bill. I think tomorrow I'll see if Frontpage can't do it.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.