CSS and Tables; The war continues
Written by on Tuesday, November 11th, 2008 in 79444.
Time for a bit of fun. The eternal battle of tables vs. CSS layouts continues. We geeks have had classics such as vi vs. emacs, and Star Wars vs. Star Trek.
First up we have giveupandusetables.com:
And then we have shouldiusetablesforlayout.com:
You have to take a look at the source for that one
HTML:
-
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-
"http://www.w3.org/TR/html4/strict.dtd">
-
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8″ />
-
<title>Should I use tables for layout?</title>
-
<style type=“text/css”>
-
html,body{
-
background:#999;color:#ccc;
-
}
-
h1{
-
font-family:"Georgia",Helvetica,Arial,Sans-Serif;
-
font-size:10em;
-
padding:.1em 0;
-
text-align:center;
-
color:#333;
-
margin:.5em auto;
-
}
-
</style>
-
</head>
-
<h1>No.</h1>
-
<!– Honestly, no. –>
-
-
<!–
-
<table border="0" width="100%">
-
<td align=“center”>No.</td>
-
</tr>
-
-
–>
-
<!– Fact: Chuck Norris hates layout tables! –>
-
</body>
-
</html>
-
Who will win? Maybe both, with display: table in the future.
Source: Ajaxian » Front Page
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/450315522/css-and-tables-the-war-continues

