Page 1 of 1

Something wrong with my site... can't figure it out.

Posted: Tue Nov 29, 2005 1:25 pm
by Luke
I am having troubles in IE with my site. It opens fine in Firefox. In IE there are unwanted spaces in the header. The site is http://www.sierra-tech.com. I have looked at it's validation errors, but none of them seem to be causing the problem. I can't figure it out!!

Oh yea and there are only problems with all pages but the index.

Posted: Tue Nov 29, 2005 1:30 pm
by foobar
Make all the images in the header align="left" or align="top" . That'll make your site fail validation, but oh well. It's a tradeoff to work with M$ "standards".

Posted: Tue Nov 29, 2005 1:43 pm
by Luke
thanks I'll try that... I dont care if it fails validation... it already does miserably.

Posted: Tue Nov 29, 2005 1:51 pm
by Luke
Didn't work

Posted: Tue Nov 29, 2005 2:17 pm
by Roja
I'll take a stab at it in a few hours.

Posted: Tue Nov 29, 2005 3:10 pm
by Luke
thanks

Posted: Tue Nov 29, 2005 3:36 pm
by Burrito
get rid of all of the spaces in your code around the table structure (including line breaks).

ex:

Code: Select all

<table>
  <tr>
    <td>
    </td>
  </tr>
</table>
should become:

Code: Select all

<table><tr><td></td></tr></table>

Posted: Tue Nov 29, 2005 5:16 pm
by Luke
but that would make like the entire header on like one line...

Posted: Tue Nov 29, 2005 5:17 pm
by Chris Corbyn
Burr is right.... It's another anooying thing IE does. It actually parses line breaks at the start of <td> element nodes as being actual content.

I think it's fine to have the <tr> on their own line but the contents of the <td /> cells needs to be touching the actual <td /> tags. I used to have this grievance a lot with table layouts :(

I've looked at your source code and I don't see a lot of situations where you have any line breaks but there are a handful (possibly just where you have tables inside table cells).

Try it and see if it works :)

Posted: Tue Nov 29, 2005 5:20 pm
by Chris Corbyn
The Ninja Space Goat wrote:but that would make like the entire header on like one line...
Example:

Code: Select all

<table>
    <tr>
        <td>
            Contents here<br />
            New line
        </td>
    </tr>
</table>
Becomes....

Code: Select all

<table>
    <tr>
        <td>Contents here<br />
            New line</td>
    </tr>
</table>
So apart from the edges of the content... the rest can go where you want ;) It's a silly IE thing :(

Posted: Wed Nov 30, 2005 3:02 pm
by Luke
Thank you sirs... it worked beautifully.