2 Replies Latest reply: Aug 14, 2007 8:18 AM by Cindy- RSS

    XHTML 1.0 strict messing up tables

    Cindy- Community Member
      I have a programmer who is using XHTML 1.0 strict. My table heights dont behave. I have a space under all my graphics that I dont seem to be able to get rid of. Dont have a clue what is causing this.

      The site is designed. I can't show you because I signed a non-disclosure.

      This table doesnt work:
      <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <td><img src="images/logo.gif" alt="Logo" width="273" height="133" hspace="0" vspace="0" border="0" /></td>
      <td><img src="images/purpleback2.gif" alt="Purple" width="62" height="133" hspace="0" vspace="0" border="0" /></td>
      <td><img src="images/kids1.gif" alt="Kids" width="415" height="133" hspace="0" vspace="0" border="0" /></td>
      </tr>
      </table>

      There is an approx. 3 pixel height under my graphics.

      Hope someone can help. I cannot go to all CSS on this one.
        • 1. Re: XHTML 1.0 strict messing up tables
          Newsgroup_User Community Member
          cindy1074 wrote:
          > I have a programmer who is using XHTML 1.0 strict. My table heights dont
          > behave. I have a space under all my graphics that I dont seem to be able to get
          > rid of. Dont have a clue what is causing this.

          Table height is not valid so if you are using a strict doc type it will
          ignore table height.

          As for the space beneath your images try adding to your css

          img {
          display: block;
          }



          > The site is designed. I can't show you because I signed a non-disclosure.
          >
          > This table doesnt work:
          > <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
          > <tr>
          > <td><img src="images/logo.gif" alt="Logo" width="273" height="133"
          > hspace="0" vspace="0" border="0" /></td>
          > <td><img src="images/purpleback2.gif" alt="Purple" width="62" height="133"
          > hspace="0" vspace="0" border="0" /></td>
          > <td><img src="images/kids1.gif" alt="Kids" width="415" height="133"
          > hspace="0" vspace="0" border="0" /></td>
          > </tr>
          > </table>
          >
          > There is an approx. 3 pixel height under my graphics.
          >
          > Hope someone can help. I cannot go to all CSS on this one.
          >

          • 2. XHTML 1.0 strict messing up tables
            Cindy- Community Member
            Thank you for your response.

            Your suggestion worked!! Yayyyyy!!