HighDots Forums  

Width affects margins under IE6-7

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Width affects margins under IE6-7 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex
 
Posts: n/a

Default Width affects margins under IE6-7 - 12-24-2007 , 02:26 PM






Hello.

I have a simple html that works good under FF and Opera, but under IE
I see unexpected left margin for the input box. This only happens when
the 'width' specified (the actual value does not matter).

- - - - - - -
<div style="margin-left:270px; border: 1px dashed red;">
<div style="border: 1px solid blue; width:100%; ">
<input type="input" value="some value"></input>
</div>
</div>
- - - - - - -

Why this happens?

Thank you for your time,
- Alex

Reply With Quote
  #2  
Old   
Edward Hass
 
Posts: n/a

Default Re: Width affects margins under IE6-7 - 12-25-2007 , 01:01 AM






"Alex" <achertog (AT) gmail (DOT) com> wrote

Quote:
Hello.

I have a simple html that works good under FF and Opera, but under IE
I see unexpected left margin for the input box. This only happens when
the 'width' specified (the actual value does not matter).

- - - - - - -
div style="margin-left:270px; border: 1px dashed red;"
div style="border: 1px solid blue; width:100%; "
input type="input" value="some value"></input
/div
/div
- - - - - - -

Why this happens?
Why does this happen? It's Internet Explorer! ;-)

To stop it from happening, wrap it in a form tag -
<form method="get" action="thisformname.html" style="margin:0;">
<input ... as above></input>
</form>




Reply With Quote
  #3  
Old   
GTalbot
 
Posts: n/a

Default Re: Width affects margins under IE6-7 - 12-26-2007 , 10:44 AM



On 24 déc, 15:26, Alex <acher... (AT) gmail (DOT) com> wrote:
Quote:
Hello.

I have a simple html that works good under FF and Opera, but under IE
I see unexpected left margin for the input box. This only happens when
the 'width' specified (the actual value does not matter).

- - - - - - -
div style="margin-left:270px; border: 1px dashed red;"
div style="border: 1px solid blue; width:100%; "
input type="input" value="some value"></input
/div
/div
- - - - - - -

Why this happens?

Thank you for your time,
- Alex
Alex,

I have reported your bug finding at bug item #96 in

Bugs in Internet Explorer 7
http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/

http://www.gtalbot.org/BrowserBugsSe...utTextBox.html

I may improve that demo/testcase later... bit busy right now...

Season's greetings and regards, Gérard


Reply With Quote
  #4  
Old   
Alex
 
Posts: n/a

Default Re: Width affects margins under IE6-7 - 01-01-2008 , 10:44 AM



Thank you both for your responses... And Happy New Year! Love, luck
and less bugs in 2008 for everybody :-)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.