I would like to know the answer too. Anyone here know what is the answer. I'll do some research and get back to you if I discover an good answer. You should email the people at iPage as they probably can help you..
I was just curious, if you don't mind me and all my Q's - what is asdf and how does it work in a table? I've never seen it before...thanks!..
"asdf " was used within the example table text as a quick and dirty place holder for real text. It doesn't "mean" anything, except that Bruce chose to type garbage with his left hand. He could have just as well used his right "jkl; "..
Whatever is between <td> and </td> is the contents of the cell...
You used unmatched width values (in your example), table width=600 but your cells only add up to 594, you create a small problem. The right top cell is actually 113 pixels wide but the width=107 attribute will prevent content from moving past that point in the cell..
Use cell attributes like:.
<td width=xxx nowrap> to prevent premature wrapping of text but you must use <br> tags to break your text, which might not always look good in different resolutions..
Compliment your <img src=image.gif.
With <img src=image.gif align=right border=0.
> to butt an image against a cell wall or other content/elements..
Most of the times I've seen the align=right in the img tag gets messed up in the browser. it adds a space in the table cell that looks funky...
Thanks for all your replies. I'll try to answer questions/comments below (you will have to add the spaces that this forum editor chomps out to make it look right):.
Here is a pic of what I wanted.
| crumb / trail / text | pic |.
| || |.
| | (spaceer...just &nbsb; ) | |.
| || |.
| | more text here | |.
| | | |.
| || |.
The crumb trail is a text string that will vary in length. The pic is to be "right" aligned and it's table cell I want of fixed width. The embedded table has no width constraints. What instead happens is the border between the top two cell columns does not go where I tell it. In IE5.5 (and likely all others) it will divide where it wants to. It places a significan gap to the left and right of the picture.
But the arbitrary location of that border causes the text to wrap in the crumb trail. If I specify a width for the second column or both columns, then the picture does not align to the right and the width is not what I specify. If I leave out the width, it aligns right but there's this big gap to the left of the pic between it and the column border (between the two columns.).
The widths I supplied in my example code were taken from Dreamweaver...it can't do the math, I can. It came up with those values after I drag the border between the columns in Layout mode. See my orig. post item #5 above..
I am not trying to be anal about table constraints. The outer table must be a fixed size. The cell holding the picture must be fixed width to allow the crumb trail maximum space, and it must be aligned right. Other than that, it's no constraints..
There was a in my code in that embedded table, row 1..
"asdf asdf" etc was just place holders. Rock was correct in his response. The real text is a crumb trail text as explained above..
I can't use "nowrap" on the crumb trail cell since if it grows long, it pushes the pic out beyond the width of the iPage website width (beyond the header graphics, etc) and looks bad..
Kevin suggests using image alignment attributes. I have never figured out the value of them except when trying to position text relative to the picture. I have no text in the cell with the pic so not sure the value of your suggestion..
My testing shows if I remove the inner table all behaves correctly. But the table must be there..
I should also state that all this exists as part of a header segment of code that gets replicated on all our iPage website pages. The body of the pages vary in content so I can't constrain the inner table to a width...it depends on the page I'm on..
Thanks for any help on this. I'm looking for a simple rule I'm violating and any workaround to get as close to what I'm after as possible...
Kevin, how's this:.
I tested with NS 6.1, 4.7, and IE 5.5..
There were two keys for stability. The first was defining a numeric width for the inner table. Neither Netscape version needs it, but IE goes funky if it does not know the precise width of the inner table. Using a percentage (eg "90%" or "100%") does not work, and causes the first row of the outer table to act funky. Netscape behaves properly with no width, with a numeric width, or with a percentage width..
This is not a "rule you are overlooking". It is funkiness relating to nested tables, probably deep in IE code..
The second is a rule. Be careful with where you put the carriage returns (not <BR>, but actual line break in the HTML source itself). They are interpreted as a space character. Scoutt mentioned one of the symptoms of allowing misplaced carriage returns. For precision placement, elements desired to be at the end of a line should end with a <BR> (as I did at the end of the <img> tag). In this case I could have followed the <img> tag immediately with a </td>, and it would have accomplished the same thing.
You do not need the bgcolor declaration within the inner table. I put it there so that I could see the where this table actually was..
I gave up on web-page building software a long time ago. It is probably much better now than in 1997, but I was frustrated when it would do "wrong" stuff. So I got in the habit of hand-coding everything, since I would always have to go into the generated source anyway to get it right. I'm sure this makes me a "fogey" (and quite possibly anal), but it does give me complete control, and over time I have built up the knowledge to use the control well..
I suspect you are fighting DreamWeaver, and DreamWeaver is fighting with the IE nested-table bug. You will likely have to alter the page DreamWeaver builds. Good luck...
Wel this is what I did and it seemed to keep the picture in the spot you want and lets the crumb trail cell get as big as it needs to and wraps...
Your solution behaves itself in IE 5.5 and NS 6.1. However, NS 4.7 doesn't like the mixture of of % and numeric widths for the columns. It begins acting like IE under Bruce's DreamWeaver example..
Also, remember the <br> or </tr> immediately following the <img> tag. That way you eliminate the trailing space character you mentioned previously...
As you are probably correct, I don't have NS at work so I couldn't test it. that is pretty much the code I use (not the % & numeric in the widths) and don't get the spaces in the cells with images. although I ain't doubting you, I just haven't had the problems you mentioned and I don't use software to write with either. I was talking about the align="right" in the image tag itself. but you could be right..
I do think however that it is a good rule of thumb to just follow by. thanks for the heads up Rock...