From 07a5b8924aa4894d83bd5739688c41df019b3b9f Mon Sep 17 00:00:00 2001 From: vargenau Date: Sat, 24 Jan 2009 11:47:30 +0000 Subject: [PATCH] boxed and bordered tables git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6449 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/shamino_com/shamino_com.css | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/themes/shamino_com/shamino_com.css b/themes/shamino_com/shamino_com.css index 4b5c3f979..579daa13f 100644 --- a/themes/shamino_com/shamino_com.css +++ b/themes/shamino_com/shamino_com.css @@ -158,3 +158,44 @@ div.boxright { width: 200px; right: 10px; padding: 0.5em; float: right; border: background: yellow; font-weight: normal; } + +/* + * table class="boxed" + * will put a border around the table (but not around the cells) + * + * table class="bordered" + * will put a border around the table and the cells + * + * In both cases, the caption will be bold and centered under the table + * + * In both cases, the headers (th) will have a "#d8d8d8" background + */ + +table.boxed, table.bordered, table.bordered th, table.bordered td { + border-width: 1px; + border-style: solid; + border-collapse: collapse; + vertical-align: top; +} + +table.boxed td, table.bordered td, +table.boxed th, table.bordered th { + padding-left: 5px; + padding-right: 5px; + padding-top: 0px; + padding-bottom: 0px; +} + +table.boxed caption, table.bordered caption { + text-align: center; + font-weight: bold; + caption-side: bottom; + padding-top: 0.8em; +} + +table.boxed th, +table.bordered th, + font-weight: bold; + background-color: #d8d8d8; +} + -- 2.45.0