SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Why are my gifs vertically, not horizontally, aligned?

    Here is my code:

    CSS:

    div.float {
    float: center;
    }

    div.float p {
    text-align: center;
    }

    HTML:

    <table width="100%">
    <tr width="100%>
    <td align="right">
    <div class="float" align="center">
    <span style="margin-left:auto; margin-right:auto;"><a href="C:\Documents and Settings\Ashley Stearns\My Documents\virtualashley.html"><img src="C:\Documents and Settings\Ashley Stearns\My Documents\homephotoshop.gif" width="51" height="51"></img src></span>
    <p>Home</p></a>
    </td>
    </div>
    <td align="left">
    <div class="float" align="center">
    <span style="margin-left:auto; margin-right:auto;"><a href="mailto:ashleystearns@attbi.com"><img src="C:\Documents and Settings\Ashley Stearns\My Documents\writeus.gif" width="51" height="51" alt="E-mail"></img src></span>
    <p>Email</p></a>
    </td>
    </tr>
    </div>
    </table>

    Thank you.

  2. #2
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey Saoirse - try closing the quotes on the width attribute of yer TR
    <tr width="100%">

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink Thank you.

    I'm hopeless, apparently.


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
  •