HighDots Forums  

Re: strange behavior with IE and margin...

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: strange behavior with IE and margin... in the HTML forum.



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

Default Re: strange behavior with IE and margin... - 06-12-2006 , 03:10 AM






"Luciano A. Ferrer" <algundiasabras (AT) arnet (DOT) com.ar> wrote:

Quote:
so, #botonera have a left margin of 18px, but IE make it 36px!
If I put a margin of 30px, IE make it 60px!
I am crazy?
No, it's IE that's is crazy.

Quote:
#botonera {
float: left;
margin: 0 0 0 18px;
}
If you have a style with float: left and margin-left: XX then IE will
make margin-left twice the size it should be (and the same with float:
right and margin-right)

See http://www.positioniseverything.net/explorer/doubled-margin.html
for more details and some suggested fixes.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #2  
Old   
Luciano A. Ferrer
 
Posts: n/a

Default Re: strange behavior with IE and margin... - 06-12-2006 , 12:53 PM






Steve Pugh ha escrito lo siguiente el 12/06/2006 04:10:
Quote:
#botonera {
float: left;
margin: 0 0 0 18px;
}

If you have a style with float: left and margin-left: XX then IE will
make margin-left twice the size it should be (and the same with float:
right and margin-right)

See http://www.positioniseverything.net/explorer/doubled-margin.html
for more details and some suggested fixes.
wow, thanks a lot Steve
It was the first time it happened to me, what an odd behavior...

--
Luciano A. Ferrer
laferrerQuiTadme (AT) SacaDMEgmail (DOT) com
http://relojurbano.com.ar .algún día volverás.

.... Vencía el que se despojaba de todo.


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

Default Re: strange behavior with IE and margin... - 06-12-2006 , 01:56 PM



Luciano A. Ferrer wrote:
Quote:
Steve Pugh ha escrito lo siguiente el 12/06/2006 04:10:

#botonera {
float: left;
margin: 0 0 0 18px;
}

If you have a style with float: left and margin-left: XX then IE will
make margin-left twice the size it should be (and the same with float:
right and margin-right)

See http://www.positioniseverything.net/explorer/doubled-margin.html
for more details and some suggested fixes.

wow, thanks a lot Steve
It was the first time it happened to me, what an odd behavior...
I have seen comments like that made quite often in regard to IE

--
"The most convoluted explanation that fits all the available and made-up
facts is the most likely to be believed by conspiracy theorists"


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 - 2009, Jelsoft Enterprises Ltd.