From 84cb0d328d83008343c92d51f24239c69b6d5914 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 13 Dec 2008 11:08:41 +0100 Subject: FF2 style fixes Three-box-layout didn't work very well together with the screenshots on the homepage and the CSS icon hack needed a   to get rid of a strange top margin. With this, the following browsers should render all pages correctly: FF2, FF3 and the latest Opera, Safari and Chrome --- lib/VNDB/Func.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/VNDB/Func.pm') diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm index 0fb0e6a1..37bec8be 100644 --- a/lib/VNDB/Func.pm +++ b/lib/VNDB/Func.pm @@ -6,7 +6,7 @@ use warnings; use YAWF ':html'; use Exporter 'import'; use POSIX 'strftime'; -our @EXPORT = qw| shorten date datestr monthstr userstr bb2html gtintype liststat clearfloat |; +our @EXPORT = qw| shorten date datestr monthstr userstr bb2html gtintype liststat clearfloat cssicon |; # I would've done this as a #define if this was C... @@ -193,5 +193,13 @@ sub clearfloat { } +# Draws a CSS icon, arguments: class, title +sub cssicon { + acronym class => "icons $_[0]", title => $_[1]; + lit ' '; + end; +} + + 1; -- cgit v1.2.3