Daney11 Posted April 20, 2007 Share Posted April 20, 2007 Hi Guys, My problem is that i have used a javascript open window command to open a new window with the pixels height=450,width=320. Then i have created a new page and entered a table with the pixels height=450,width=320. However when i open the window the page is not being viewed correctly. The pixels are are out by a few pixels from the right and the top. Any ideas on how to position my table correctly within the new opened window? thanks Dane Link to comment https://forums.phpfreaks.com/topic/47911-solved-view-the-page-correctly/ Share on other sites More sharing options...
fenway Posted April 20, 2007 Share Posted April 20, 2007 Probably margins are at fault. Link to comment https://forums.phpfreaks.com/topic/47911-solved-view-the-page-correctly/#findComment-234201 Share on other sites More sharing options...
AndyB Posted April 20, 2007 Share Posted April 20, 2007 The correct height for a table is determined by the height of the content. If you want the table to completely fill the window, then use width="100%". Link to comment https://forums.phpfreaks.com/topic/47911-solved-view-the-page-correctly/#findComment-234348 Share on other sites More sharing options...
Daney11 Posted April 22, 2007 Author Share Posted April 22, 2007 I'm still having problems. <table width="320" height="450" cellpadding="0" cellspacing="0" align="center" class="outline"> <tr> <td width="120" height="20"> From:</td> <td width="200" height="20"> <?php echo $first_name ?>td> </tr> <tr> <td width="120" height="20"> To:</td> <td width="200" height="20"> <input type="text" name="mail_to" size="30" maxlength="30" class="shoutbox"></td> </tr> <tr> <td width="120" height="20"> Subject:</td> <td width="200" height="20"> <input type="text" name="mail_subject" size="30" maxlength="30" class="shoutbox"></td> </tr> <tr> <td width="120" height="20"> Date:</td> <td width="200" height="20"> <?php $date = date('d/m/Y'); $time = date('H:i:s'); echo $date; ?> <?php echo $time; ?></td> </tr> <tr> <td width="320" height="350" colspan="2"><textarea name="mail_body" cols="60" rows="20" class="shoutbox"></textarea></td> </tr> <tr> <td width="320" height="20" colspan="2" align="right">Send Mail </td> </tr> </table> The Javascript that i am using is <Script Language="JavaScript"> function mail_compose() { var load = window.open('compose.php','','scrollbars=no,menubar=no,height=450,width=320,resizable=no,toolbar=no,location=no,status=no'); } </Script> How would i make it so that the content fits perfectly into the newly opened javascript page. Link to comment https://forums.phpfreaks.com/topic/47911-solved-view-the-page-correctly/#findComment-235350 Share on other sites More sharing options...
Daney11 Posted April 22, 2007 Author Share Posted April 22, 2007 No worrys guys ive solved it. Anyone wondering how i just added <form> at the begining of <table> and </form> at the end of </table> Worked lol. Link to comment https://forums.phpfreaks.com/topic/47911-solved-view-the-page-correctly/#findComment-235368 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.