|W3C validated page not rendering in Firefox!|
IE better than Firefox? Hope not!
| 10:44 am on Jan 31, 2009 (gmt 0)|
I am relative newbie at web-design. I'm trying to create a small web-site using XHTML 1.0 - Transitional DOCTYPE. Both the XHTML page & the CSS validates at the W3C Validator site. However, I can see the page rendered fairly well in IE7, but the same won't render in Firefox 3.0.5! This is kinda strange, and I've been pulling my hairs since the last few hours figuring out why? Any pointers would help. I can post the page & the CSS file, if needed. Thanks for any help in advance.
| 11:11 am on Jan 31, 2009 (gmt 0)|
Welcome to WebmasterWorld ajaydand65.
Posting a URL to your site would not be acceptable, but you could certainly post code snippets (use example.com instead of real URLs). You could probably start at the part of the page that isn't displaying properly.
| 11:17 am on Feb 6, 2009 (gmt 0)|
Get the Firebug extension. Use the HTML tab to traverse the tag tree. Look in the box on the right to see which CSS properties are being applied to that element. It's a revelation.
Usually it's a problem with forgetting to add
position:relative to my floats, and/or forgetting
clear:both somewhere along the way.
Other times it is an incorrect margin or something, and most times it is the margin on a parent element, not the margin on the element that appears to be mis-aligned.
| 8:53 am on Feb 7, 2009 (gmt 0)|
Thanks for all the helpful tips. The issue is resolved for now. It turned out that my favorite editor used to save pages in non-ANSI, non-UTF8 charset, which somehow IE didn't mind, but FF did! On correction, things got working fine.
| 11:31 pm on Jun 4, 2009 (gmt 0)|
Any reason for using XHTML 1.0 Transitional rather than HTML 4.01 Strict here?
| 2:09 am on Jun 5, 2009 (gmt 0)|
Moving from any transitional doctype to a strict doctype of any flavor can be more work than moving between xhtml and html.
| 3:21 am on Jun 5, 2009 (gmt 0)|
Thanks for the suggestions. Well, as I said, I'm still a newbie. :-p I just wanted to dabble with XHTML, and my favorite editor's template used the transitional doctype, hence it stuck.