From 5adbed530c9ffb07c26442aa530b50544689d3da Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 10 Nov 2006 14:53:46 +0000 Subject: Fix gap between list marker and list content. svn path=/trunk/netsurf/; revision=3040 --- !NetSurf/Resources/CSS,f79 | 2 +- render/layout.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/!NetSurf/Resources/CSS,f79 b/!NetSurf/Resources/CSS,f79 index 89a87f229..e61d97d66 100644 --- a/!NetSurf/Resources/CSS,f79 +++ b/!NetSurf/Resources/CSS,f79 @@ -57,7 +57,7 @@ ul { display: block; padding-left: 1.5em; margin-bottom: 1em; list-style-type: disc; } ol { display: block; padding-left: 1.5em; margin-bottom: 1em; list-style-type: decimal; } -li { display: list-item; padding-left: 0.5em; margin-bottom: 0.3em; } +li { display: list-item; margin-bottom: 0.3em; } ul ul { list-style-type: circle; } ul ul ul { list-style-type: square; } diff --git a/render/layout.c b/render/layout.c index d618af2f7..a135cc03c 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2410,6 +2410,7 @@ void layout_lists(struct box *box) marker->y = 0; marker->height = line_height(marker->style); } + marker->x -= 4; // Gap between marker and content } layout_lists(child); } -- cgit v1.2.3