GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Jul-2008, 01:17
Howard_L Howard_L is offline
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 802
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Table alignment within a frame


...stays in the vertical-center of the frame no matter what I try.
I would like it to be at the top left corner.
What is the best approach?

I am using: Fedora/1.5.0.7-7.fc6 Firefox/1.5.0.7
--Howard;
  #2  
Old 19-Jul-2008, 02:16
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: Table alignment within a frame


You didn't supply the example markup of the web page with the table so it is difficult to pinpoint the problem. I can however suggest you look at the style for the body tag of the document.

For example:

HTML Code:
<html> <head> <title>GIDForums Example: /t-18821.html</title> <style type="text/css"> body { padding:0; margin:0; } </style> </head> <body> <table cellspacing="0" cellpadding="0" border="1" summary=""> <tr> <td> <p>Margins, and paddings.</p> </td> </tr> </table> </body> </html>
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 19-Jul-2008, 09:49
Howard_L Howard_L is offline
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 802
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: Table alignment within a frame


As far a s posting code goes...I didn't know where to start! This get confusing huh...
HTML Code:
<!-- Presently I am using a .css file which is: --> body { margin:0; border:0; padding:0; background-color: 68bdc5; font-family: helvetica, arial, sans-serif; font-size: 11pt; } table_1 { vertical-align: top; background-color: ffffff; <- This is having no effect } <!-- ...which I call with this in the page --> <link rel="stylesheet" type="text/css" href="book_style.css"> <!-- ...and fhe table is this: --> <form name='addform' action='proc_changes1.php' method='POST'> <table id='table_1' cellspacing='0' cellpadding='0' border='1' > <!-- ...I must say that I have gotten some result from placing an anchor at the bottom of the table: --> <a name='TL' /> </table> <!-- ...and using it in the frame call: --> <frame src="add1.php#TL" <!-- ...which works for full page loads but not for a frame reload after the form submission from the proc_changes1.php : --> <script type='text/javascript'> parent.list.location='list1.php'; parent.add.location='add1.php#TD'; </script> <!-- ...actually the main.html may not be done correctly , can this be done ? I have frame set in frameset in frameset,, it seems to work OK: --> <html> <frameset rows="10%,90%"> <frame src="heading1.php" name="heading"> <frameset cols="80%,20%"> <frameset rows="*,90"> <frame src="list1.php" name="list"> <frame src="add1.php#TL" name="add" marginheight="0" marginwidth="0" > </frameset> <frame src="menu1.php"> </frameset> </frameset> <!-- as you can see, I tried something there in the frame directive as well .... all to no avail... woe is me......... -->
So, pretty confusing... I will put together a simple sample of the whole thing... Thanks again, back later (lots to do today)
beginning second set and the darn tables are at top left!!! what the heck... using php...
I'll keep adding stuff until I get the centered tables again...
Or could it be the browser is not really dumping everything on "clear private data' ?
Last edited by Howard_L : 19-Jul-2008 at 11:17.
  #4  
Old 19-Jul-2008, 12:49
Howard_L Howard_L is offline
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 802
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: Table alignment within a frame


...I think I found the problem. I had <br />'s within the table!
Here is the set of files. frame2.php is where the action is... try it out you own self and see the fun!
HTML Code:
<!-- ---- frames2.css ---- --> body { margin:0; border:0; padding:0; background-color: 68bdc5; font-family: helvetica, arial, sans-serif; font-size: 11pt; } <!-- frames2_main.html --> <html> <frameset cols="75%,25%"> <frameset rows=" * , 16% "> <frame src="frame1.php" name="frame1" > <frame src="frame2.php" name="frame2" > </frameset> <frame src="frame3.php" name="frame3" > </frameset> </html> <!-- frame1.php and use for frame3.ph too these go to top left of frame!!! NO Problem... --> <html> <head> link rel="stylesheet" type="text/css" href="frames2.css"> </head> <body> frame1.php <br /> <?php echo " <table border='1'> <tr><td>cell1</td> <td>cell2</td> <td>cell3</td> <td>cell4</td> </tr> <table> "; ?> </body> </html> <!-- frame2.php <br />'s within the table were fouling up top alignment --> <html> <head> <link rel="stylesheet" type="text/css" href="frames2.css"> </head> <body> frame2.php <br /> <?php echo " <table border='1'> <tr> <td>Ref#</td> <td>Cat. pg/col</td> <td>Cat. #</td> <td>Type</td> <td>Title</td> <td>Price</td> <td>Qty</td> </tr> <!-- I had a <br /> here --> <tr> <td><input name='ival1' type='text' size=5 /></td> <td><input name='ival2' type='text' size=5 /></td> <td><input name='ival3' type='text' size=5 /></td> <td><input name='ival4' type='text' size=5 /></td> <td><input name='ival5' type='text' size=35 /></td> <td><input name='ival6' type='text' size=7 /></td> <td><input name='ival7' type='text' size=7 /></td> </tr> <!-- I had a <br /> here --> <table> <!-- a <br /> here causes no harm --> <input name='addsubmit' type='submit' value='send stuff '> "; ?> </body> </html>
We'll see what happens now.... Let me know if you see other things I am running afoul on.
Thanks for the help! ; Howard++;
Last edited by Howard_L : 19-Jul-2008 at 13:36.
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2D arrays:dynamic allocation and freeing bravetanveer C Programming Language 48 27-Nov-2007 16:55
Verify if a specific data exists in a table Richardknox MySQL / PHP Forum 3 01-Jun-2007 12:16
Transfer longblob from one table to another table Richardknox MySQL / PHP Forum 6 13-Dec-2006 05:26
Cannot create a table in DB WaltP MySQL / PHP Forum 3 26-Apr-2006 17:09
No output from loop function crystalattice C++ Forum 2 20-Dec-2004 21:39

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:49.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.