From f74554e1ffb09253b3676bf5b7e0cbfda5a5212c Mon Sep 17 00:00:00 2001 From: wiemann Date: Sun, 18 Dec 2005 00:56:14 +0000 Subject: removed padding around cells of borderless tables; simplified comments git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@4224 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/html4css1/html4css1.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docutils/writers/html4css1/html4css1.css') diff --git a/docutils/writers/html4css1/html4css1.css b/docutils/writers/html4css1/html4css1.css index beab2b42b..e94df1546 100644 --- a/docutils/writers/html4css1/html4css1.css +++ b/docutils/writers/html4css1/html4css1.css @@ -12,12 +12,16 @@ customize this style sheet. */ /* used to remove borders from tables and images */ -.borderless, .borderless td {border: 0;} +.borderless, table.borderless td, table.borderless th { + border: 0 } + +table.borderless td, table.borderless th { + /* Override padding for "table.docutils td" with "! important". + The right padding separates the table cells. */ + padding: 0 0.5em 0 0 ! important } -/* "! important" is used here to override other ``margin-top`` and - ``margin-bottom`` styles that are later in the stylesheet or - more specific. See http://www.w3.org/TR/CSS1#the-cascade */ .first { + /* Override more specific margin styles with "! important". */ margin-top: 0 ! important } .last, .with-subtitle { -- cgit v1.2.1