]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] CSS & HTML fun
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Mon, 12 Oct 2009 21:09:08 +0000 (23:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Oct 2009 22:22:01 +0000 (00:22 +0200)
commitf2d2b1d128dfa91719bb70cc847b4a14df27c4be
treee2837398eac2550c0e2758d5ee75b63386efad3c
parentf5bbafe051024a608fd81afa6dfa62485c988c9a
[MINOR] CSS & HTML fun

This patch makes stats page about 30% smaller and
"CSS 2.1" + "HTML 4.01 Transitional" compliant.

There should be no visible differences.

Changes:
 - add DOCTYPE for HTML 4.01 Transitional
 - add missing </ul>
 - remove cols=, AFAIK no modern browser support this property and
   it prevents validation to pass.
 - remove "align: center": there is no such property in css. There is
   however "text-align: center" but it is definitely not what we would
   like to see here.
 - by default align .titre to center
 - by default align .td to right
 - remove all align=right, no longer necessary
 - add class=ac (align center): shorter than "align=center" and use it when
   necessary
 - remove nowrap from td, instead use "white-space: nowrap" in css

Now stats page passes W3C validators for HTML & CSS. We may consider adding
"validated" icons from www.w3.org. ;)
src/dumpstats.c