Having a schocker with compatibility

They have: 2 posts

Joined: Feb 2011

Hi all

My site is at http://www.ukamericansportsfans.com

I have designed it in firefox and it is not compatible with ie or safari and I would like it to be.

I have tried validating style sheets and looking at reset css and doctypes but I am having a nightmare. It is the last stumbling block in going live so it is very frustrating. I have attached two stylesheet files that I know aren't validated correctly but that didn't solve the issue so I reverted back to original code I had on final build which is attached.

If any one could help it would be very much appreciated.

Yours hopefully

Damian

AttachmentSize
style.css8.81 KB
template-style.css1.73 KB

He has: 629 posts

Joined: May 2007

Hi Damien,
As far as I can make out, your main problem seems to be with an incompletely closed comment on line 180. While two dashes should end the comment, the lack of the greater-than symbol is being treated differently from browser to browser.

Try validating the HTML. The W3C validator found 69 errors, although one error may give rise to several messages, so it's not that bad. Smiling The HTML 4 standard does not say how browsers are to treat errors, so it's best to avoid them. Happily, HTML5 tries to address this issue, so hopefully this nightmare of inconsistent error handling will one day be behind us.

Good luck.

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

They have: 2 posts

Joined: Feb 2011

Brilliant I closed that with a --> and there was also one extra <\div> and it is sorted - thank you very much it is greatly appreciated.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.