For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2006 > setting height and width









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author setting height and width
Nospam

2006-09-25, 9:58 pm

If I wanted to set the height and width for a php script, would a straight
forward inclusion of the height and width, as in img scr work? e.g:

<?php include_once('sample.php'); width="50" height="100" ?>



J.O. Aho

2006-09-25, 9:58 pm

Nospam wrote:
> If I wanted to set the height and width for a php script, would a straight
> forward inclusion of the height and width, as in img scr work? e.g:
>
> <?php include_once('sample.php'); width="50" height="100" ?>


<table style="width : 50px; height : 100px">
<tr><td>
<?PHP include_once('sample.php'); ?>
</td></tr>
</table>

You can't tell the PHP how big it's output will be, you need to set it inside
a table and define how big the table will be (you can also use frame and
iframe to do this).


//Aho
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com