getimagesize() is the PHP function you're looking for.

Michael Clayton wrote:
> (Clicking reply in Gmail defaults to the user's email address, and not
> [EMAIL PROTECTED]  Anyone know a way to fix this?  I accidently
> sent this to Angel directly.)
>
> That should be possible by setting the "margin-top" of the image to a
> negative number, which would slide it under the text.  You may have to set
> the z-indeces of the text to a higher number than the image if the image
> overlaps the text in that case.
>
> Alternatively, you could forego the <img> tag completely and instead use a
> background image as follows
>
> .rand-img-box {
>      background: top left no-repeat url(random_image.jpg);
>      }
>
> <div class="rand-img-box">
>      Text describing image
> </div>
>
> If you go that way you will run into problems with height and width of the
> box.  If I remember correctly, PHP is capable of reading the height and
> width of an image, so you could fix that fairly easily.  It's been a very
> long time since I've done PHP, and I don't know any of the image functions,
> but here is the getimagesize() function for your pleasure.
>
> http://us2.php.net/manual/en/function.getimagesize.php
>
> Hope that helps, and good luck!
>
> --
> Michael Clayton
> www.twilighted.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to