Custom Table using the <x>
tag
Lookatthesource
Tagscanbereconfigured
Mostnormaltagswork
Suportedinallbrowsers
AllmadeinCSS
Nobodywillnoticeit
Pleasedon'tdothis
Random version
Source
<?php
$lines=array(
'Look at the source',
'Tags can be reconfigured',
'Most normal tags work',
'Suported in all browsers',
'All made in CSS',
'Nobody will notice it',
'Please don\'t do this'
);
?>
<!doctype HTML>
<!--
I must go now
my people need me
connection reset by peer
random version at tables.php
-->
<html lang="en">
<head>
<title>Custom Table</title>
<style>
body {font-family:Sans-Serif;}
x {display:table;border-collapse:collapse;border:1px solid #000000;}
x>x {display:table-row;}
x>x>x{display:table-cell;padding:5px;border:1px solid #000000;}
</style>
</head>
<body>
<h1>Custom Table using the <code><x></code> tag</h1>
<x><?php
//Table generator
foreach($lines as $line)
{
$words=explode(' ',$line);
echo '<x>'; //tr
foreach($words as $word)
{
echo "<x>$word</x>"; //td
}
echo "</x>\n"; //tr
}
?></x>
<a href="tables.php">Random version</a><br />
<h2>Source</h2>
<div><?php highlight_file(__FILE__); ?></div>
</body>
</html>