Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Geting <BR> to work after a Table

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
I have (or should say Had, since I made the whole page into an invisible table so I could force the positioning)<br>but in anycase , I had a Table, 2 Rows (4 cells on top, 2 cells on bottom) then after the &lt;/Table&gt; I had a couple &lt;br&gt;<br>but for some reason the text afterwards was being aligned to the right of the Table, starting at the top of the table, and going down the rest of the page.<br><br>anyone know why this happens?<br><br>I'm using IE 5.5<br> <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Karl,<br><br>As Nick Bulka says, it would be good to see the code.<br><br>2 suggestions:<br>*&nbsp;&nbsp;&nbsp;you may not have closed some of the &lt;table&gt;&lt;/table&gt;, &lt;tr&gt;&lt;/tr&gt; or &lt;td&gt;&lt;/td&gt; pairs properly, so IE treats the next piece of text as part of the table.&nbsp;&nbsp;This one gets me all the time, and it's particularly tricky if you have varying numbers of rows / columns in the table as you seem to have.&nbsp;&nbsp;One easy way to check this is to test the same page in Netscape, which refuses to recognise a table if all the pairs of tags are not properly closed / nested (yes, there is a use for Netscape!)<br>*&nbsp;&nbsp;try starting the text with &lt;p&gt;<br>
 
for starters I am positive I had the table closed<br>it was like this.<br><br><FONT FACE=monospace><br>&lt;Table border=0 width=100%&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td align=right valign=top&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td align=left valign=top&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td align=right valign=top&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td align=left valign=top&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td colspan=2 align=left&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td colspan=2 align=left&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br>&lt;/Table&gt;<br>&lt;br&gt;&lt;br&gt;<br></font> <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
In any case I worked around it by throwing all the Text below the table into another Row as a part of the table with a colspan=4, so it would line up forcefully<br><br>if you want to see the page its at<br><br><A HREF=" TARGET="_new"> is my first online review. <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
you could try throwing is an &nbsp;&nbsp;between the &lt;br&gt; like this:<br><br>&lt;br&gt;&nbsp;&lt;br&gt;<br><br>It will sometimes put a space where a simple break won't. Then you should be able to put as many more after it as you need.<br><br>Don
 
Most probably you had &lt;table align=&quot;left&quot; ...&gt; ....&lt;/table&gt;. That would position all following text to the right of the table (including &lt;br&gt;) on right of the table. <br>The solution is to use not just &lt;br&gt; but &lt;br clear=&quot;all&quot;&gt; <p>IvanP<br><a href=mailto:ip@thehyper.net>ip@thehyper.net</a><br><a href= > </a><br>
 
The tables never had an alignment, I just set width to 100%, the only things that had alignments were the Tabel cells. <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
I just realize my post was missing the thing I was trying to show, which was the code for a blank space.&nbsp;&nbsp;I guess this forum supports HTML so it didn't show up. I use it all the time for spaces where a paragraph will not work, such as inside tables.<br><br>This is what I meant (I hope it shows up!)<br><br>&lt;br&gt;&amp;nbsp;&lt;br&gt;<br><br>I never saw the &lt;br clear=&quot;all&quot;&gt; before but if I undertstand it, it should work too.<br><br>Don
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top