SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with lining up an image

    I placed an image in front of some text, but the text lines up to the right of the image, which is good, but it appears towards the bottom of the image.

    Is there a way to have the text line up more towards the center of the image?

    Here's an example of what I'm talking about.
    If the image is: l
    and the text is: _
    it currently lines up like this l _

    I'd like it to line up like this: l -

    Here's the code I'm using now:
    Code:
    <font size="4" color="#800000" face="Arial"><img src="/images/image1.jpg" border="0" />Text</font>
    Any help would be appreciated.

  2. #2
    SitePoint Guru silver trophy JamesColin's Avatar
    Join Date
    May 2009
    Location
    Jomtien, Pattaya, Thailand
    Posts
    910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try valign="middle" in the img tag
    Do you really need traffic? Where to? What for?
    If you really do need traffic then stop messing around!
    Advertise on my sites today: She Told Me & Best Reviewer :
    200,000+ UV / Month

  3. #3
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks you for your help.

    align="middle" in the img tag worked.

    thanks again


Bookmarks

Posting Permissions

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