Hi guy/girls hope that I may borrow from you technical experience here. I am currently producing a site for a family business (it’s not hi tech but I’m proud of it). I have designed the simple layout around <div> tags in CSS rather than table tags in html. My problem is that in IE my container which is set at 98% sits against the left margin, whereas in Firefox etc it sits perfectly square.
The weird thing is that I have remade the pages and the CSS file now and they work initially but then I turned on this morning and nothing.
I know that this may not appear on face value to be a biggie but I used CSS to get exactly what I want, to illustrate this error I have made the container have a red background.
You have a comment above your doctype which is putting IE into quirks mode. You're also missing the XML namespace from your HTML tag: <html xmlns="http://www.w3.org/1999/xhtml">
Alas i figured the first bit out 10 mins after i posted the request. I have replaced the normal <html> tag with the one that you suggested! I assume that is what you ment for me to do.
Bookmarks