From 8252605e0b3139aeb82271a0fe1940060d459792 Mon Sep 17 00:00:00 2001 From: vargenau Date: Sat, 24 Jan 2009 11:37:17 +0000 Subject: [PATCH] boxed and bordered tables git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6444 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/Portland/portland.css | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/themes/Portland/portland.css b/themes/Portland/portland.css index 17caf9c4d..28ab23d63 100644 --- a/themes/Portland/portland.css +++ b/themes/Portland/portland.css @@ -64,3 +64,43 @@ body.sidebar { body.sidebar div.wikitext ul { padding-left: 1em; } body.sidebar h2 { margin-top: 0; } +/* + * 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