Something wrong with my site... can't figure it out.
Moderator: General Moderators
Something wrong with my site... can't figure it out.
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.
Oh yea and there are only problems with all pages but the index.
Last edited by Luke on Tue Nov 29, 2005 1:54 pm, edited 1 time in total.
get rid of all of the spaces in your code around the table structure (including line breaks).
ex:
should become:
ex:
Code: Select all
<table>
<tr>
<td>
</td>
</tr>
</table>Code: Select all
<table><tr><td></td></tr></table>- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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
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
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Example:The Ninja Space Goat wrote:but that would make like the entire header on like one line...
Code: Select all
<table>
<tr>
<td>
Contents here<br />
New line
</td>
</tr>
</table>Code: Select all
<table>
<tr>
<td>Contents here<br />
New line</td>
</tr>
</table>