View Full Version : I need help : IE is hating on my floats
Mar 5, 2004, 05:50 PM
Alright I wanted to do this all on my own, but since I don't have a windows box to test on, it is really hard to do. I'm redesigning my site (http://www.paualrms.com). The new style renders beautifully in Safari, Mozilla, Camino, and Firefox. Internet Explorer Mac, Internet Explorer Windows, and Opera make my site look like a bag of crap.
Here (http://www.paularms.com/news) is the design for the new site. View it in one of the above browsers that displays it correctly first, then use Internet Explorer. You will notice that Internet Explorer just decides to push all of the content down below the links on the left.
I believe the problem is with everything on my site pretty much contained within 2 floats. One is the left float for the menu tabs and the news section and the other is for the rest of the content. Does IE just not render floats at all? Or is the problem somewhere with the way that I have written the code?
Mar 5, 2004, 06:36 PM
It might be IE miscalculating box sizes, as it has a habit of doing. Have you tried and of the IE box-model hacks (e.g. Tantek's voice-family hack) to see if that's the case?
If it is, and you want to avoid hacks, you'll need to do some restructuring of paddings and margins to make it work.
Mar 5, 2004, 06:54 PM
Ok I found the problem... I think...
IE doesn't want to shift the position of floats. The whole left side menu and news is in one large float that has the following...
font-family: LucidaGrande, Lucida, Helvetica, Arial, sans-serif;
I believe that the problem is there in the position, left, and top, because I notice that it does not offset either left or up. Any help is greatly appreciated.
I'm always willing to try an alternate way of doing this entirely.
Mar 7, 2004, 02:38 PM
Okay, so I gave in and now I am not going to use relatively positioned floats, as it is pretty unconventional.
Instead, I'm using a lot of absolute positioning... but there is still a bit of a problem...
The test html file looks great in every browser on my Mac, IE included. But when I place it on my server, the page looks like crap (link (http://www.paularms.com/news)).
I am so confused as to what is going on. Any help, corrections, comments are very welcome and appreciated.
Mar 7, 2004, 02:59 PM
Okay I figured this out...
(aside: I feel like I am talking my problems out to myself right now, but that's okay, because someone else might have a similar problem sometime)
The problem is not with anything I have written; it is with where the HTML file is locating the stylesheet. If I put the stylesheet in a different directory and point the HTML file to it, everything works fine. Internet Explorer is just getting angry and not reading the file in its entirety if it is in the same directory. Pointing it to a different server works great to.
Solution: I put the stylesheet in a different directory and am just going to point the HTML to that instead.
Rant: I wish everyone who still uses Internet Explorer would have their computer taken away by the standards police. Then, I wish that the standards police would beat the computer with a baseball bat until the computer is nothing but 5 million tiny pieces strewn about the floor of its owner's house.
Mar 7, 2004, 05:34 PM
okay so now i'm having a problem that i've never had before...
a lot of the floats that are links just don't appear as links... in any browser. link (http://www.paularms.com/archives.html) all of the leftmost image links (all floats) do not allow clicks or anything. it's really weird. i've never seen this happen before...
could it be that I have breaks (<br />) after the image to put the text underneath the image? if so, what's the best way around that?
Mar 7, 2004, 09:45 PM
okay i'm an idiot and is specified my menu to be a lot wider than i needed... the overlap was making the links not work.
Mar 7, 2004, 11:00 PM
Glad you got it figured out. :)