Html Help

Discussion in 'GR Classic Archive' started by WrathRaven, Jan 5, 2005.

  1. WrathRaven

    WrathRaven Member

    Posts:
    7
    Likes Received:
    0
    Joined:
    Nov 3, 2004
    Does anyone know how to center an image in the exact middle of the page. I'm talking about equally spaced from the top, bottom, and both sides. Not just centered left to right. Please help a newbie out.
     
  2. Joe

    Joe Well-Known Member

    Age:
    36
    Posts:
    1,837
    Likes Received:
    0
    Joined:
    Oct 9, 2004
    Location:
    Fort Wayne
    umm go to www.pixel2life.com and look, but i THINK u add valign="center" to the body tag, i think, ill check tho

    EDIT: <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td valign="middle" align="center">img src="image.jpg" width="360" height="73" border="0"></td>
    </tr>
    </table>
    i found that on a tutorial site, im pretty sure thats it, just change the stuff to fit u
     
  3. Ausant

    Ausant Well-Known Member

    Posts:
    357
    Likes Received:
    0
    Joined:
    Dec 26, 2004
    of course!!! go <center> then ur image coding </center>
     
  4. Joe

    Joe Well-Known Member

    Age:
    36
    Posts:
    1,837
    Likes Received:
    0
    Joined:
    Oct 9, 2004
    Location:
    Fort Wayne
    ... he said top and bottom too
     
  5. Ausant

    Ausant Well-Known Member

    Posts:
    357
    Likes Received:
    0
    Joined:
    Dec 26, 2004
    yea... u did that i wasn't gunna repet it.. duh.. :P
     
  6. Blazeman

    Blazeman Am I Evil?

    Age:
    38
    Posts:
    5,915
    Likes Received:
    1
    Joined:
    Oct 16, 2004
    Location:
    Maryland
    it depends how you want your image.. are you trying to make it as a background or something? will it only be an image on the page or text as well?
     
  7. WrathRaven

    WrathRaven Member

    Posts:
    7
    Likes Received:
    0
    Joined:
    Nov 3, 2004
    No text. Just one image for the entrance page to my site. I just want the image centered on the page.
     
  8. Joe

    Joe Well-Known Member

    Age:
    36
    Posts:
    1,837
    Likes Received:
    0
    Joined:
    Oct 9, 2004
    Location:
    Fort Wayne
    ok well read my first post, it tells u how to do it
     
  9. Blazeman

    Blazeman Am I Evil?

    Age:
    38
    Posts:
    5,915
    Likes Received:
    1
    Joined:
    Oct 16, 2004
    Location:
    Maryland
    yeah just do what n3ptun3 said.. im guessing you're making a splash page
     

Share This Page