I've made the jump from table design to css about a week ago and have since been reading more about it. Yesterday, I read a long post here on SO where the posters were knocking floats and about how depreciated they are. There was a lot of talk about inline-block
being used in its place.
I have a HTML5 design that I just finished and it looks fantastic in firefox and chrome but when tested from other computers running Internet Explorer versions 7, 8 and 9, the design absolutely explodes. It seems to me that anything in this design that I've floated right is not honored in IE. It just seems to wrap under whatever is to the left of it.
I'd like to know if I'm OK with floats or if I should I be using inline-block
instead. An example of how to have two divs next to one another where one is on the left side and the other on the right, using inline-block
would be nice.
I have another dilemma here that hopefully someone can help me with. I am on an old development machine running XP SP1. The best IE browser I can test with is 6. I'd like to somehow get a hold of something that will allow me to test versions 7, 8 and 9 (and 10 if it's out yet). Can someone recommend any solution for this?
question from:
https://stackoverflow.com/questions/9776840/are-floats-bad-what-should-be-used-in-its-place 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…