Float left problem in IE Mac

liunx

Guest
Hi!

did someone have a hack to the float left problem in IEmac.

The problem is that, into a main div (#1) with width 700px, i've got 2 div (#2, #3) float left width 350px (no border, no padding, no margin) but the div #3 is at the bottom of #2, instead of at his right ???


Please help,

SteveDoes #1 have any padding or margins? Try:

<style type="text/css">
<!--
#a {
width:700px;
margin:0;
padding:0;
border:0;
}

#b, #c {
width:350px;
margin:0;
padding:0;
border:0;
float:left;
}

#c {
float:right;
}
-->
</style>


If it still does work, well, then I'd suggest perhaps increasing the parent div by a pixel or two or shaving down one of the sub-divs by a pixel or two. Perhaps though, the issue is you using ID's like 1 2 or 3? The HTML 4.01 Specification states:


ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").Merci beaucoup mais malheureusement, ca ne fonctionne pas :(Etes-vous calme utilisant des nombres comme ID's? Vous ne pouvez pas avoir ID's qui commence avec les nombres, il ne travaille pas.

Also, did you try reducing/enlarging by a few pixels? IE is buggy, and IE for Mac can be even worse.I've change my structure so now instead of having 2 div side by side, i've got 1 div inside the other, float right and it's working


thank

turb
 
Back
Top