The obvious answer would be a table. miguel
On Thu, 23 May 2002, Andre Dubuc wrote: > PHP 4.1.2 + Apache 1.3.23 + PostgreSQL 7.2 > > I've put off trying to figure out how to accomplish a fairly simple display > problem. It's probably so simple, that I keep missing it. > > Here's what I'd like to accomplish: > > I want an image (aligned on the left side) with text beside it (aligned in > the center). That sounds simple enough. But try as I may, I can't get it to > work. > > Here's the code I've tried: > > ******************************************************************************* > > <?php > // lotsa stuff > > print "<br><div align='left'><img src='709-2585.jpg' width='120' > height='120' alt=' '/></a></div><div > align='center'>{$_SESSION['desc']}</div><br>"; > > // more stuff > ?> > > ******************************************************************************* > > What it displays: > > The pix is on the left where it should be, but the text isn't centered, but > hangs either just underneath the pix. I've seen many sites with this layout. > Perhaps they've separated the image/text. But I can't figure out how they did > it. > > Any ideas? > > Will greatly appreciate some suggestions, and at this point, hand-slapping > for missing the obvious:> > > Tia, Andre > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php