Basic Html Help Please!!

Discussion in 'OT Technology' started by Ashmar_Hendrix, Sep 22, 2004.

  1. I am doing an html assignment for my Web Site Design class and I am just learning html. I have to get this image centered (My InfoCenter) and can't do it. This is what it is suppose to look like
    [​IMG]
    This is the image i need to center
    [​IMG]
    and this what I have so far
    [​IMG]
    what am I doing wrong????
    I would appreciate the help!
     
  2. Keyzs

    Keyzs OT Supporter

    Joined:
    Nov 3, 2003
    Messages:
    814
    Likes Received:
    0
    Location:
    Charlotte, MI
    Try:
    Code:
    <td colspan="2" bgcolor="#0066cc" align="center">
         <img src="myinfocenter.gif">
    </td>
    
    or

    Code:
    <td colspan="2" bgcolor="#0066cc">
        <center>
             <img src="myinfocenter.gif">
        </center>
    </td>
    
    Align is not a property of an image.... (The first code is more 'proper')
     
  3. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    you could also encapsulate it in div tags
    Code:
    <td colspan="2" bgcolor="#0066CC">
    <tr>
    <div align="center"><img src="myinfocenter.gif" /></div>
    </tr>
    </td>
    
    hope that helps :)
     
  4. Aimless

    Aimless Resident drunkey

    Joined:
    Nov 5, 2001
    Messages:
    2,534
    Likes Received:
    0
    Location:
    Wisconsin
    The center tag was deprecated in HTML 4.01, and isn't supported at all in XHTML. If you want me to like you, use this:
    Code:
    <div style="text-align: center">
    <img src="myinfocenter.gif" />
    </div>
     
    Last edited: Sep 22, 2004

Share This Page