Need Major Help

admin

Administrator
Staff member
<!-- w --><a class="postlink" href="http://www.geocities.com/daub815/template.html">www.geocities.com/daub815/template.html</a><!-- w --><br />
The 2 borders on the side will not align left or right why? Why Does align = "right" not work?<!--content-->Quite simple... :p<br />
<br />
In your page, to align the borders you wrongly put the [Align=] command inside the <TD> tag... It should be in the <IMG> tag!!! :)<br />
<br />
Try to change this part: <TR><br />
<TD align=left width=150><IMG alt=border <br />
src=http://www.webdeveloper.com/forum/archive/index.php/"DHS Template_files/slice6.art"></TD><br />
<TD width=450 colSpan=3>Section 1</TD><br />
<TD align=right width=150><IMG alt=border <br />
src=http://www.webdeveloper.com/forum/archive/index.php/"DHS Template_files/slice7.art"></TD></TR></TBODY></TABLE><br />
<br />
For this (i put the part that you must change in italics!!!): <TR><br />
<TD valign="Top" width=150><IMG alt=border <br />
src=http://www.webdeveloper.com/forum/archive/index.php/"DHS Template_files/slice6.art" align="Left"></TD><br />
<TD width=450 colSpan=3>Section 1</TD><br />
<TD valign="Top" width=150><IMG alt=border <br />
src=http://www.webdeveloper.com/forum/archive/index.php/"DHS Template_files/slice7.art" align="Right"></TD></TR></TBODY></TABLE><br />
<br />
You'll also have to set the 'blank space' around you images to zero, so that it sticks to the border of your table...<br />
<br />
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<!--content-->thanks it solved the problem for the left column, but what do I do about the right.<br />
<!-- w --><a class="postlink" href="http://www.geocities.com/daub815/template.html">www.geocities.com/daub815/template.html</a><!-- w --><!--content-->The answer is in my first post!!!! :eek:<br />
<br />
<TD valign="Top" width=150><IMG alt=border <br />
src=http://www.webdeveloper.com/forum/archive/index.php/"DHS Template_files/slice7.art" align="Right"></TD> :)<!--content-->Just out of interest why is it wrong to put align="left" in the <td> tag and not the <img> tag?<!--content-->Because if you put the "align" info in the <TD> tag your asking for the cell to be aligned, not its contents!!!<br />
<br />
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! ;)<br />
<br />
I can't explain you "why" exactly, I'm not good enough at that, but I know that's how it works...:)<!--content-->
 
Back
Top