Lining up an image next to some text

Discussion in 'Graphics & Multimedia' started by chrisj, Oct 29, 2009.

  1. #1
    I'm not very skilled at lining up text next to an image.

    This didn't work:
    <font size="6" color="#800000" face="Arial">Text<img src="images/img1.jpg" border="0" /></font><br/>
    Code (markup):
    can you tell me how to put an image in the same line (roughly) as the text?

    thanks
     
    chrisj, Oct 29, 2009 IP
  2. stuart.letterman

    stuart.letterman Guest

    Messages:
    143
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The image shouldn't be within the FONT tag:

    Try that and adjust the margin size, you may want a margin on the bottom if the image is very small, if so rename it to "margin-bottom=4px" :)

    Oh and use pixel size for your font or it'll look different in different browsers...
     
    stuart.letterman, Oct 29, 2009 IP
  3. nighteagle

    nighteagle Peon

    Messages:
    328
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use align tag to your picture.. and correct do not put your image inside font tag..
    <img align="left" ... />

    you can refer to this site for more..
    http://www.w3schools.com/
     
    nighteagle, Oct 30, 2009 IP