diff options
Diffstat (limited to 'httemplate/elements/table-grid.html')
-rw-r--r-- | httemplate/elements/table-grid.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/elements/table-grid.html b/httemplate/elements/table-grid.html index 80611f511..17eafdf1a 100644 --- a/httemplate/elements/table-grid.html +++ b/httemplate/elements/table-grid.html @@ -1,8 +1,14 @@ +<% + my %opt = @_; + $opt{cellspacing} ||= 0; + $opt{cellpadding} ||= 0; + +%> <STYLE TYPE="text/css"> .grid table { border: solid; empty-cells: show } .grid TH { padding-left: 3px; padding-right: 3px; border: 1px solid #dddddd; border-bottom: dashed 1px black; border-right: none } .grid TD { padding-left: 3px; padding-right: 3px; empty-cells: show; border: 1px solid #cccccc; border-bottom: none; border-right: none } </STYLE> -<TABLE CLASS="grid" CELLSPACING=0 CELLPADDING=0 BORDER=1 BORDERCOLOR="#000000" STYLE="border: solid 1px black; empty-cells: show"> +<TABLE CLASS="grid" CELLSPACING=<%= $opt{cellspacing} %> CELLPADDING=<%= $opt{cellpadding} %> BORDER=1 BORDERCOLOR="#000000" STYLE="border: solid 1px black; empty-cells: show"> |