I like tabbing my code so it's easier for me to read and go threw etc. but a lot of the time this causes problems in the way the site is displayed in IE.
For example:
<div id="nav">
<img src="/images/nav_top.png" width="1001" height="3" alt="nav_top" /><ul id="links"><li><a href="/">Home</a></li><li><a href="/">About Us</a></li><li><a href="/">Policies</a></li><li><a href="/">Apply</a></li><li><a href="/">Forums</a></li><li><a href="/">DKP</a></li><li><a href="/">Videos</a></li></ul>
</div>
- <div id="nav">
- <img src="/images/nav_top.png" width="1001" height="3" alt="nav_top" /><ul id="links"><li><a href="/">Home</a></li><li><a href="/">About Us</a></li><li><a href="/">Policies</a></li><li><a href="/">Apply</a></li><li><a href="/">Forums</a></li><li><a href="/">DKP</a></li><li><a href="/">Videos</a></li></ul>
- </div>
The above will display as intended. However the below:
<div id="nav">
<img src="/images/nav_top.png" width="1001" height="3" alt="nav_top" />
<ul id="links">
<li><a href="/">Home</a></li>
<li><a href="/">About Us</a></li>
<li><a href="/">Policies</a></li>
<li><a href="/">Apply</a></li>
<li><a href="/">Forums</a></li>
<li><a href="/">DKP</a></li>
<li><a href="/">Videos</a></li>
</ul>
</div>
- <div id="nav">
- <img src="/images/nav_top.png" width="1001" height="3" alt="nav_top" />
-
- <ul id="links">
- <li><a href="/">Home</a></li>
- <li><a href="/">About Us</a></li>
- <li><a href="/">Policies</a></li>
- <li><a href="/">Apply</a></li>
- <li><a href="/">Forums</a></li>
- <li><a href="/">DKP</a></li>
- <li><a href="/">Videos</a></li>
- </ul>
- </div>
This will put a nice big space between the image and inline list.
Is it something specific to my code? Or is there some other coding practice or something I can do so I can have my code tabbed and still display properly in IE?
If it's needed I can link to the site in question above, but I generally find tabbing like the above to cause problems consistently in IE, not specific to this case.
Thanks for any help / advice.