By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,499 Members | 1,234 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,499 IT Pros & Developers. It's quick & easy.

IE Adds Mysterious Left Margin to Textboxes

P: n/a
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?
Oct 28 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Nonce schrieb:
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)
Oct 29 '08 #2

P: n/a

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

See demo #2

--
Berg
Oct 29 '08 #3

P: n/a
Bergamot wrote:
http://www.positioniseverything.net/explorer.html

See demo #2
Thank you! Exactly the problem I was having.
** Posted from http://www.teranews.com **
Oct 29 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.