Results 1 to 2 of 2

Thread: placing images and text on the same line

  1. #1
    Join Date
    Jul 2005

    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
    HTML Code:
    <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.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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