Re: strange behavior with IE and margin...
- From: Steve Pugh <steve@xxxxxxxx>
- Date: Mon, 12 Jun 2006 08:10:09 +0100
"Luciano A. Ferrer" <algundiasabras@xxxxxxxxxxxx> wrote:
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.
#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@xxxxxxxx> <http://steve.pugh.net/>
.
- Follow-Ups:
- Re: strange behavior with IE and margin...
- From: Luciano A. Ferrer
- Re: strange behavior with IE and margin...
- References:
- strange behavior with IE and margin...
- From: Luciano A. Ferrer
- strange behavior with IE and margin...
- Prev by Date: Re: Show image top left in html page, how can I do that ?
- Next by Date: nested table and site layout problems
- Previous by thread: strange behavior with IE and margin...
- Next by thread: Re: strange behavior with IE and margin...
- Index(es):
Relevant Pages
|