Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Fit image into an html with PHP
Name: rsasalm Date: October 17, 2005 at 06:15:17 Pacific OS: WinXP CPU/Ram: P4
Comment:
Hi all, I am using PHP 5 to develop my web pages. I am using few images at the top of the page. When I expande the browser the images don't. What to do so that the images also expand or decrease as I expand or decrease the browser size? thanks for help regards /rsasalm
Name: Michael J (by mjdamato) Date: October 17, 2005 at 08:36:16 Pacific
Reply:
There's really no good way to do that. You could create a table with 100% width and make cells with relative widths. Then put the images into each cell with 100% widths. That works for the width of the images, but what about the height? As the user resizes the window, there is no built in method to have the width and height scale proportionately - so your images would get skewed. You might be able to do it with some involved JavaScript, but then you run into compatibility issues.
Summary: Michael J, You're absolutely right, I'm not too familiar with PHP, I've only been looking into it for about 3 weeks. Re whether this is for personal or not - it's not for personal but to be displayed ...
Summary: I am trying to create an HTML contact form using PHP. I am having trouble with the script . If someone can assist me, I would appreciate it. Here is the script: <?php $to = "you@yourdomain.com"...
Summary: I want to have a table cell that contains an image. The image should scale so that it always fills the cell, whose height is determined by the other cells in the row. I don't know the rendered height ...