From 9e1dbe3a36c8b33787174850874caa6c5ae94107 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 1 Aug 2004 13:08:19 +0000 Subject: [project @ 2004-08-01 13:08:18 by bursa] More work on overflow. Modify block centering to left-align when insufficient space. Fix caret positioning for form controls with padding. svn path=/import/netsurf/; revision=1171 --- !NetSurf/Resources/CSS,f79 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '!NetSurf') diff --git a/!NetSurf/Resources/CSS,f79 b/!NetSurf/Resources/CSS,f79 index 2b0575d3d..3944d5eec 100644 --- a/!NetSurf/Resources/CSS,f79 +++ b/!NetSurf/Resources/CSS,f79 @@ -1,7 +1,7 @@ /* * This file is part of NetSurf, http://netsurf.sourceforge.net/ */ - + /* Elements ordered as in the HTML 4.01 specification. */ html { display: block; } @@ -128,10 +128,12 @@ iframe[align=left] { float: left; } iframe[align=right] { float: right; } form { display: block; } +form > * { margin-left: inherit; margin-right: inherit; } input { background-color: #fff; color: #000; width: 10em; height: 1.5em; text-align: left; border-width: 1px; - border-color: #000; border-style: solid; } + border-color: #000; border-style: solid; overflow: hidden; + padding: 0 2px; } input[type=button], input[type=reset], input[type=submit], button { background-color: #ddd; color: #000; width: auto; border-width: medium; border-color: #eee #aaa #aaa #eee; @@ -149,10 +151,12 @@ input[align=right] { float: right; } select { background-color: #ddd; color: #000; width: 10em; height: 1.5em; text-align: left; border-width: medium; - border-color: #aaa #eee #eee #aaa; border-style: inset; } + border-color: #aaa #eee #eee #aaa; border-style: inset; + overflow: hidden; padding: 0 2px; } textarea { background-color: #fff; color: #000; text-align: left; - border-width: 1px; border-color: #000; border-style: solid; } + border-width: 1px; border-color: #000; border-style: solid; + overflow: scroll; padding: 0 2px; } fieldset { display: block; border: thin solid #888; } -- cgit v1.2.3