XHTML ?s
- Started
- Last post
- 4 Responses
- heavyarms
Why when doing a CSS page thats valid XHTML, when you add the doctype, positions of elements in your site change in different browsers.
For instance just by adding a doctype I had a pages menu drop down 2 pixels in Firefox and the whole page move to the left in IE?
Also, is it common to use .xhtml as an extension or just .htm?
- unfittoprint0
you should tweak your code in Dreamweaver's Code view, there's a lot of blank space/non breaking spaces created while copy& pasting, etc... that will affect the overall layout.
- christoph0
Never use .xhtml as the file extension for XHTML code. *Always* use a HTML-based extension (.htm, .html, or even .php, .asp, ...).
- heavyarms0
It's all in hand code. Tableless HTML and CSS.
- heavyarms0
Nevermind I fixed it. It's because browsers have modes for standards and quirky code. If it has a Doctype for a standards the code is judged more strictly by the browser and may not work if it's not perfect.