How do I center this?

Discussion in 'HTML & Website Design' started by Davey Crocket, Nov 24, 2006.

  1. #1
    Davey Crocket, Nov 24, 2006 IP
  2. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #2
    In would just nest the header table inside another table set to 100% width...

    <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center"><center><table border="0" width="85%" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="left"><a href="/self-help/index.php"><img src="/hypnosis-header44.jpg" border="0" alt="Self Hypnosis Forum" /></a></td> </tr> </table> </center></td> </tr> </table>
     
    livingearth, Nov 24, 2006 IP
  3. rebex

    rebex Peon

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Depending on your editor, you can always just double-click on your image and select "center".
     
    rebex, Nov 24, 2006 IP
  4. master06

    master06 Peon

    Messages:
    2,806
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    0
    #4
    use align="center" tag on your image td .

    Regards,
    Mustafa
     
    master06, Nov 25, 2006 IP
  5. josephfrancis

    josephfrancis Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Hello,

    Replace this

    <img src="/hypnosis-header44.jpg" border="0" alt="Self Hypnosis Forum">

    with this

    <img src="/hypnosis-header44.jpg" border="0" alt="Self Hypnosis Forum" align="middle">

    Thats it, it should help you


    Good Luck

    Joe
     
    josephfrancis, Nov 25, 2006 IP