Connecting Tech Pros Worldwide Forums | Help | Site Map

IE Adds Mysterious Left Margin to Textboxes

Nonce
Guest
 
Posts: n/a
#1: Oct 28 '08
I have two examples of this behaviour:
http://www.accursoft.co.uk/css/odd1.xhtml
http://www.accursoft.co.uk/css/odd2.xhtml

In each case, IE7 adds a left margin to textboxes for no apparent reason, but only if the textbox is the first thing on
its line.

I have searched in vain to find the cause of this. Any ideas?

Thomas Mlynarczyk
Guest
 
Posts: n/a
#2: Oct 29 '08

re: IE Adds Mysterious Left Margin to Textboxes


Nonce schrieb:
Quote:
http://www.accursoft.co.uk/css/odd1.xhtml
In each case, IE7 adds a left margin to textboxes for no apparent
It seems it is the default margin of the <ulelement which causes this.
Some browsers use margin, others use padding for indenting lists.

Try this:

ul { list-style: none; margin: 0; padding: 0; }
label, div { float: left; }
li { clear: both; }

instead of your styles.

Greetings,
Thomas

--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
Bergamot
Guest
 
Posts: n/a
#3: Oct 29 '08

re: IE Adds Mysterious Left Margin to Textboxes



Nonce wrote:
Quote:
>
IE7 adds a left margin to textboxes for no apparent reason
http://www.positioniseverything.net/explorer.html

See demo #2

--
Berg
Nonce
Guest
 
Posts: n/a
#4: Oct 29 '08

re: IE Adds Mysterious Left Margin to Textboxes


Bergamot wrote:Thank you! Exactly the problem I was having.
** Posted from http://www.teranews.com **
Closed Thread