Aligning a frame

  • feelgood
  • Newbie
  • Newbie
  • feelgood
  • Posts: 12
  • Loc: NY

Post 3+ Months Ago

I have this code here. I did EVERYTHING I could think of to align that frame to the top of the area it's in.

How do I align it so it starts at the top, not the center of that region? any ideas?

thank you!



Code: [ Select ]
<html>
<BODY>

<TABLE id=principal cellSpacing=0 cellPadding=0 width="100%" height="100%" align=center border="10">
<TBODY>



<TR valign=top height=50><TD>

<table border=1 width="100%"> <tr> <td> <p>blah blah blah blah blah <br> blah blah <br> blah <br> blah <br> blah </p> </td> </tr> </table>

</TD></TR>



<TR valign=top> <TD>

<table border=1 width="100%" height="100%">
<tr>

<td width="20%">
 <table border=1 width="100%" height="100%">

<tr><p><td>blah1</p></td></tr>
<tr><p><td>blah2</p></td></tr>
<tr><p><td>blah3</p></td></tr>
</table>

</td>


<td>
<div>

<TABLE id=RefExp cellSpacing=0 cellPadding=0 width="100%" border=1 height="250" style="border-collapse: collapse" bordercolor="#111111">
 <TBODY>
  <TR valign="top">
  <TD width=15>
  <iframe name="I1" width="100%" height="100%" border="0" frameborder="0" src="displayphoto.htm">
  your broswer doens't support frames.</iframe>
  </TD>
  </TR>
 </TBODY>
</TABLE>
 
</div>

</td>
<tr>

</td> </tr> </table>


</TD> </TR>


</TBODY>
</TABLE>



</BODY>

</html>
  1. <html>
  2. <BODY>
  3. <TABLE id=principal cellSpacing=0 cellPadding=0 width="100%" height="100%" align=center border="10">
  4. <TBODY>
  5. <TR valign=top height=50><TD>
  6. <table border=1 width="100%"> <tr> <td> <p>blah blah blah blah blah <br> blah blah <br> blah <br> blah <br> blah </p> </td> </tr> </table>
  7. </TD></TR>
  8. <TR valign=top> <TD>
  9. <table border=1 width="100%" height="100%">
  10. <tr>
  11. <td width="20%">
  12.  <table border=1 width="100%" height="100%">
  13. <tr><p><td>blah1</p></td></tr>
  14. <tr><p><td>blah2</p></td></tr>
  15. <tr><p><td>blah3</p></td></tr>
  16. </table>
  17. </td>
  18. <td>
  19. <div>
  20. <TABLE id=RefExp cellSpacing=0 cellPadding=0 width="100%" border=1 height="250" style="border-collapse: collapse" bordercolor="#111111">
  21.  <TBODY>
  22.   <TR valign="top">
  23.   <TD width=15>
  24.   <iframe name="I1" width="100%" height="100%" border="0" frameborder="0" src="displayphoto.htm">
  25.   your broswer doens't support frames.</iframe>
  26.   </TD>
  27.   </TR>
  28.  </TBODY>
  29. </TABLE>
  30.  
  31. </div>
  32. </td>
  33. <tr>
  34. </td> </tr> </table>
  35. </TD> </TR>
  36. </TBODY>
  37. </TABLE>
  38. </BODY>
  39. </html>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

Put valign="top" in the TD element, not the TR.

But I really don't think you need an inline frame. Like the use of tables for layout, they are usually inappropriate.
  • feelgood
  • Newbie
  • Newbie
  • feelgood
  • Posts: 12
  • Loc: NY

Post 3+ Months Ago

what do you recommend I should use for layout? I'm totally new to this web design and I thought tables would be a good start.

any suggestions?
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

Never mind. Tables are a good start. Although they were meant for tabular data (such as statistics for baseball players), tables for layout are rather ubiquitous, and it's just the idealist in me saying you really shouldn't use them for laying out a Web page.

Eventually, you might wish to learn CSS, which can be used for creating especially neat layouts, ones which are flexible and easy to make fit to the user's window. But, by all means, finish your current project as is.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 38 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.