(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 On 3/8/06, Angel Outon <[EMAIL PROTECTED]> wrote: > > Hi. > > I like to ask anyone of you to see if this is possible and some advise > for it. > > I have a banner made by a div and has an variable image to display. This > is done using this script: http://www.bezveze.com/skripte/rid/ > > Something like this > > <div> > <p class="slogan">Some text over the image</p> > <?php include("random/rid.php"); ?> <!-- here is the random image --> > </div> > > I like to have the text> Some text over the image to be displayed on > top of the random image. > > Is this possible? > > Thanks for your advise, > > regards, > > Angel > > ______________________________________________________________________ > 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/ > -- 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/