View Full Version : Converting to XHTML from html
trevorsaint
January 1st, 2004, 01:45 PM
I have heard that converting to XHTML is the way to go. I have tried converting and now find that my external CSS style sheet does not work correctly? Secondally the 100% heght table also does not function as it should. Cand anyone please explain why this is, and is there a work around to this problem.
Thanks
claudio
January 1st, 2004, 03:15 PM
Trevor, can you post the external CSS file?
λ
January 2nd, 2004, 11:52 AM
Originally posted by trevorsaint
I have heard that converting to XHTML is the way to go. I have tried converting and now find that my external CSS style sheet does not work correctly? Secondally the 100% heght table also does not function as it should. Cand anyone please explain why this is, and is there a work around to this problem.
Thanks
There's no height attribute for tables in XHTML.
Unless you're ready to stop using table-based design entirely and move to using CSS for positioning and everything, I don't recommend moving to XHTML at all :(
norie
January 2nd, 2004, 11:58 AM
you can use inline css:
style="height: 100%"
λ
January 2nd, 2004, 12:03 PM
well yeah, but he'll most likely come into problems later on ;)
koorb
January 26th, 2005, 04:51 PM
To use the height: 100% attribute in style or class you must also make all parent elements 100% i.e. <html> and <body> !
nextstep
January 27th, 2005, 12:15 PM
I think the other thing you have to make sure of is your document type.
If all your html docs have
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
at the beginning (like they should) then you will have issues validing it because it's trying to valid an html doc and not an xhtml doc.
If you're using dreamweaver you can create a new html doc and check the 'make xhtml compliant" to get the right heading. Or just use this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.