Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    wrap data around image

    Hi again.
    I am trying to have text that is called from a database word wrap around an image that is also called from the same database. Is this at all possible. I have called the two fields in the same table cell but the text does not start until the bottom of the picture instead of next to it. HOpe this makes sense.

    My code is:

    PHP Code:
    <td class="text" colspan="2" valign="top">
                <div align="left"><img src="<? echo($row['imgname']); ?>"> 
                  <?echo(nl2br($row['info_long'])); ?>
                </div>
    Any help greatly appreciated as I'm new to this game.

    Thanks, Sheryll.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    try adding align="left" or align="right" into the image tag

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    380
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or <img style="float:right;" src"..."/>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •