|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-09-26 17:03 UTC] Rick at Formex dot nl
Description: ------------ The type comparison tables are a bit hard to read, a bit of color would improve it a lot. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 16:00:01 2025 UTC |
Here is an example on how to solve this: CSS: .true{ background-color:#cfc; } .false{ background-color:#fcc; } HTML: <table border="1" class="CALSTABLE"> <thead> <tr> <th>==</th> <th><tt class="constant true"><b>TRUE</b></tt></th> <th><tt class="constant false"><b>FALSE</b></tt></th> </tr> </thead> <tbody> <tr> <td><tt class="constant true"><b>TRUE</b></tt></td> <td><tt class="constant true"><b>TRUE</b></tt></td> <td><tt class="constant false"><b>FALSE</b></tt></td> </tr> <tr> <td><tt class="constant false"><b>FALSE</b></tt></td> <td><tt class="constant false"><b>FALSE</b></tt></td> <td><tt class="constant true"><b>TRUE</b></tt></td> </tr> </tbody> </table>I've just noticed that I've made a mistake in my last post, here's the right version: HTML: <table border="1" class="CALSTABLE"> <thead> <tr> <th>==</th> <th><tt class="constant"><b>TRUE</b></tt></th> <th><tt class="constant"><b>FALSE</b></tt></th> </tr> </thead> <tbody> <tr> <td><tt class="constant"><b>TRUE</b></tt></td> <td class="true"><tt class="constant"><b>TRUE</b></tt></td> <td class="false"><tt class="constant"><b>FALSE</b></tt></td> </tr> <tr> <td><tt class="constant"><b>FALSE</b></tt></td> <td class="false"><tt class="constant"><b>FALSE</b></tt></td> <td class="true"><tt class="constant"><b>TRUE</b></tt></td> </tr> </tbody> </table>