Click to See Complete Forum and Search --> : Need Major Help


daub815
04-05-2003, 03:41 PM
www.geocities.com/daub815/template.html
The 2 borders on the side will not align left or right why? Why Does align = "right" not work?

nash
04-05-2003, 03:59 PM
Quite simple... :p

In your page, to align the borders you wrongly put the [Align=] command inside the <TD> tag... It should be in the <IMG> tag!!! :)

Try to change this part: <TR>
<TD align=left width=150><IMG alt=border
src="DHS Template_files/slice6.art"></TD>
<TD width=450 colSpan=3>Section 1</TD>
<TD align=right width=150><IMG alt=border
src="DHS Template_files/slice7.art"></TD></TR></TBODY></TABLE>

For this (i put the part that you must change in italics!!!): <TR>
<TD valign="Top" width=150><IMG alt=border
src="DHS Template_files/slice6.art" align="Left"></TD>
<TD width=450 colSpan=3>Section 1</TD>
<TD valign="Top" width=150><IMG alt=border
src="DHS Template_files/slice7.art" align="Right"></TD></TR></TBODY></TABLE>

You'll also have to set the 'blank space' around you images to zero, so that it sticks to the border of your table...

Another way to do this is to 'cheat' and add the green that should be the background in those columns to your original pics (making the pics 150 pixels wide!) this way they'll just fit in the table! :p

daub815
04-05-2003, 05:05 PM
thanks it solved the problem for the left column, but what do I do about the right.
www.geocities.com/daub815/template.html

nash
04-05-2003, 05:09 PM
The answer is in my first post!!!! :eek:

<TD valign="Top" width=150><IMG alt=border
src="DHS Template_files/slice7.art" align="Right"></TD> :)

David Harrison
04-07-2003, 01:57 PM
Just out of interest why is it wrong to put align="left" in the <td> tag and not the <img> tag?

nash
04-08-2003, 07:59 AM
Because if you put the "align" info in the <TD> tag your asking for the cell to be aligned, not its contents!!!

When dealing with images layout inside a table in HTML, always do what we call in france "belt and suspenders"... It means, in our case, that you'd better put redondant info to be sure that the browser does what you want it to! ;)

I can't explain you "why" exactly, I'm not good enough at that, but I know that's how it works...:)