www.webdeveloper.com
Results 1 to 2 of 2

Thread: placing images and text on the same line

  1. #1
    Join Date
    Jul 2005
    Posts
    1

    placing images and text on the same line

    how do i place an image directly to the right of text when the image is several lines tall? whenever i try it (using DIV ALIGN=left for the text, DIV ALIGN=right for the image) it always puts the image on the next line. how do i put an image and text on the same line? i've already checked if there are any <br>'s that might be moving it to the next line, but there are none.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,244
    HTML Code:
    <p>
    <img src="graphic.png" alt="my picture" height=50 width=100 style="float: right;">
    This is the paragraph from which you want the image to be floated to the
    right. This is a test. It is only a test. Lorem ipsum dolor sit amet,
    consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
    dolore magna aliqua.
    </p>
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles