Need help getting image to appear within a paragraph

Discussion in 'HTML & Website Design' started by ErnieB, Mar 29, 2008.

  1. #1
    Im a total newb and i want an image to appear on the right of a paragraph and have the text be apart of the same block or whatever. heres a site for an example. http://www,phonetops.com. My site is using a different template and can be found here http://www.livelifeforsuccess.com

    I tried copyin and pastin the code piece from the one to mine ( the part with the ing src and the float right part ) but the image just appeared above my paragraph and not intermingled with it to the right.

    Im sure its an easy fix. Any help greatly appreciated.
     
    ErnieB, Mar 29, 2008 IP
  2. rodaniel

    rodaniel Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's what works for me. Note that if you're using CSS, that may be interfering...

    <img align="right" border="0" hspace="10" vspace="10" width="175" height="175" src="http://www.whatever.com/someimage.jpg" alt="" title="" />

    Rob
     
    rodaniel, Mar 29, 2008 IP
  3. ErnieB

    ErnieB Well-Known Member

    Messages:
    369
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #3
    i think its using css as well, i dont know lol. But that code worked great!!! i just had to adjust the height and width so the pic looked ok. THANKS SO MUCH
     
    ErnieB, Mar 29, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi Ernie,

    I answered your question on SitePoint. Anyway, the method rodaniel suggested won't validate if you're using a Strict DOCTYPE, and it also "hard-codes" the alignment into the HTML, which can make updating a royal pain in the neck, especially if you have to change the direction that all the images of this type point to across dozens, or even possibly hundreds (or thousands) of pages.
     
    Dan Schulz, Mar 29, 2008 IP