PDA

View Full Version : [CSS & XHTML] Valid Compact CSS Layout



smitholi
03-06-2008, 09:04 AM
1) CODE TITLE: Valid HTML 4.01 Strict & CSS Layout

2) AUTHOR NAME/NOTES: Oliver Smith & Derek Harvey

3) DESCRIPTION: Simple 3 column, 4 container layout. Has been downloaded numerous times.

4) URL TO CODE:
Main Demo Page http://www.smitholi.com/css-templates/compact-css-template/


or, ATTACHED BELOW (see #3 in guidelines below):

boogyman
03-06-2008, 01:20 PM
<!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" xml:lang="en" lang="en">
<head>
<title>Compact CSS Template</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1250" />
is not valid!

you are receiving a false positive from the validator because you are parsing the page as HTML not XHTML. and since IE doesnt support XHTML you shouldn't be using the transitional DOCTYPE either, instead look into HTML 4.01 Strict

smitholi
03-06-2008, 01:42 PM
:eek: Changing that now, thanks for letting me know.

jscheuer1
03-06-2008, 02:07 PM
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.smitholi.com%2FLayouts%2FLayout8%2F&charset=%28detect+automatically%29&doctype=HTML+4.01+Strict&group=0&verbose=1

lotsofcode
03-06-2008, 02:32 PM
Changing that now, thanks for letting me know.

Now that the website is HTML 4.0 valid, perhaps you should edit the title of the post so you do not mis-lead anyone.

smitholi
03-06-2008, 02:50 PM
Now Valid, Many thanks for making me aware of the problem :-)