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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table showing at the middle of the page !! 2

Status
Not open for further replies.

mimi2

Technical User
Apr 2, 2002
407
CA
hello,
i have one form nested in one table on my page.nothing else. still, i managed to create a problem: my table shows at the middle of the page instead of the top!!!!!!
<cfquery>
</cfquery>
<table>
<form>
<tr><td>etc...</td></tr>
<tr><td>etc...</td></tr>
......
</form>
</table>
how can i solve this ? thanks
 
put your form tag outside the table

form tags cannot be within a table at anytime. A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
I have found strange problems with tables every now and again.

I usualy have one table that takes up the whole page and then put other items in it.
Code:
<html>
<body leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>

<table border=&quot;1&quot; height=&quot;100%&quot; width=&quot;100%&quot;>
 <tr>
  <td valign=&quot;top&quot; align=&quot;center&quot;>

   <table border=&quot;1&quot; height=&quot;30%&quot; width=&quot;30%&quot;>
    <tr>
      <td valign=&quot;bottom&quot; align=&quot;center&quot;>content in here</td>
    </tr>
   </table>

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

</body>
</html>

hope this sorts out your problem.

if not let me know
Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
nothing worked? can you post the code for the page. A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
I always have form tags inside tables. Sometimes one in and one out. Works every time. -----------------------------------------------
These are endless galaxies which are yours.
You can journey to infinity
through the endless passages of the cosmos.
Even better. This all belongs to you.
This is your mind.
 
not a good idea and against every coding convention I've ever learned. A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
You have, presumably, a Coldfusion query before your table. The contents of that query could be forcing the table away from the top of the page. I'd also look for a wayward image or possibly an onLoad event that, although not physically in your HTML file, could be altering the placement of the table. There's always a better way...
 
Check for paragraphs and line breaks outside the closing table tag. if it is after the table or not in a row the browser will parse it at the top of the page. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top