From 702aaf6524d1cce416d5824e6c73bf3741e88248 Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Fri, 10 Sep 1999 22:42:53 +0000 Subject: [PATCH] tweaking margins on lists --- layout/html/document/src/ua.css | 11 ++++++++--- layout/style/ua.css | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/layout/html/document/src/ua.css b/layout/html/document/src/ua.css index 38a2faedb57d..d787a7db2867 100644 --- a/layout/html/document/src/ua.css +++ b/layout/html/document/src/ua.css @@ -307,14 +307,16 @@ fieldset { ul, menu, dir { display: block; list-style-type: disc; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } ol { display: block; list-style-type: decimal; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } @@ -373,7 +375,7 @@ dl { dt { display: block; } -dl[compact] > DT { /* compact allowed on DL, OL, UL, DIR MENU */ +dl[compact] > dt { /* compact allowed on DL, OL, UL, DIR MENU */ display: compact; } dd { @@ -383,6 +385,9 @@ dd { dl dl { margin: 0 0 0 40px; } +dt dl, dd dl { + margin: 0; +} /* leafs */ diff --git a/layout/style/ua.css b/layout/style/ua.css index 38a2faedb57d..d787a7db2867 100644 --- a/layout/style/ua.css +++ b/layout/style/ua.css @@ -307,14 +307,16 @@ fieldset { ul, menu, dir { display: block; list-style-type: disc; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } ol { display: block; list-style-type: decimal; - margin: 1em 0 1em 40px; + margin: 1em 0; + padding-left: 40px; counter-reset: -html-counter 0; } @@ -373,7 +375,7 @@ dl { dt { display: block; } -dl[compact] > DT { /* compact allowed on DL, OL, UL, DIR MENU */ +dl[compact] > dt { /* compact allowed on DL, OL, UL, DIR MENU */ display: compact; } dd { @@ -383,6 +385,9 @@ dd { dl dl { margin: 0 0 0 40px; } +dt dl, dd dl { + margin: 0; +} /* leafs */