[solved] floating and clearing not working in IE

JavaScript and client side scripting.

Moderator: General Moderators

smudge
Forum Contributor
Posts: 151
Joined: Sun May 20, 2007 12:13 pm

Post by smudge »

Ok, I seem to have solved the problem. Apparently setting a width in IE does not cooperate with floating things. In a selector buried in my stylesheet I found a selector that set the width of p.indent to 95% to solve a problem I was having earlier in development. Thanks to all of you who helped me. I appreciate it very, very much.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Do you use the web developer extension of Firefox? That will help you a lot in seeing what CSS rules apply to each element. Of course, it's better to keep your stylesheets clean and structured so that you don't have to spend a lot of time wondering how each element gets styled. But in cases you're not sure, the web dev extension works wonders.

About IE and floats: it does work. However, there are a couple of bugs you have to be aware of. Positioniseverything.net has them listed and explained.
smudge
Forum Contributor
Posts: 151
Joined: Sun May 20, 2007 12:13 pm

Post by smudge »

Yes, I do, but I also use firebug, which is even better
Post Reply