PDA

View Full Version : Table Layout not working in IE


mkvl3
October 27th, 2007, 07:32 PM
Hey folks, i'm currently developing a table-based personal site. It's table based simply because I have not yet mastered the art of CSS layouts.

Anyway, the page looks fine in all browsers except IE (surprise, surprise...) and i'm having trouble figuring out the source of this error. The version this was tested on was IE 6.

Here's the page in question
http://sporadicmovement.com/dev/index.html

I'd appreciate any insight.
Thanks

Buzz
October 27th, 2007, 08:36 PM
I didn't check IE, but the other coding errors you have may be the issue there...


some of these are based on the XHTML doctype....

<img src="films.jpg" border="0">
<img src="photos.jpg" border="0">
<img src="design.jpg" border="0">
<img src="other.jpg" border="0">

Not closed properly


Recent YouTube Videos Will Appear Here<br>

break tag not closed properly



<a href="films.html"><img src="films.jpg" border="0">

Missing closing anchor tag


badge_code_v2.gne?count=12&display=latest&size=t&layout=x&source=user&user

& should be written as &amp; for proper XHTML.


<span class="footer-text">
<div align="left"><a href="index.html">Home</a> | <a href="films.html">Films</a> | <a href="photos.html">Photos</a> | <a href="design.html">Design</a> | <a href="other.html">Other</a></div>
</span>


Span is not a container. Place span tags inside div tags. Or better yet, apply the class to the encompassing table cell or div and remove the span entirely.

Since all your table cells have background images why not code them in a way that is xhtml standard?
Rather than

<td background="left2.jpg" width="290" height="69" style="background-repeat:no-repeat">

try

<td width="290" height="69" style="background: url(left2.jpg) no-repeat;">


it may be better to use <strong> rather than <b>. This isn't critical but thinking forward the w3c has labeled the <b> tag as deprecated.


You don't mention exactly what isn't working in IE. Honestly, I'm on a Mac right now and don't feel like booting an emulator to see IE on the PC. But, since the doctype declares the page as xhtml, fixing the errors above may correct whatever the problem is.

mkvl3
October 27th, 2007, 09:05 PM
Thanks Buzz! All problems you mentioned have now been fixed, however the IE bug hasn't. Here's a screenshot of how it's being rendered.

http://sporadicmovement.com/dev/ie.jpg

mkvl3
October 30th, 2007, 12:46 AM
Any ideas? I have to present this tomorrow in a lab that has nothing but IE installed on it's computers.