http://bit.ly/oSJwP2
Anyone know how to fix my #updates
or give me some hints?
I've tried to give them positions, but it keeps getting messed up.
Thanks.
EDIT: .chatango
is now messed up. in IE, anyone?
Thanks.
Add float: left;
to #updates
. That seemed to do the trick for me.
The best I can do is to provide a generic solution, since I can't check in IE.
Things to generally look out for.
- Make sure that the parent container has a width and that this width is at least larger than the children elements.
- If you are floating the elements, I would do the float left first, and then float:right
- If you are having problems with IE, beaware of margin and indentation bugs.
If you can, you might want to consider using a "grid system".
For example...
Make your container 900px, then if you have two child elements, you can set widths on them, and then give then float:left
on both, or display:inline-block
(preferable).
精彩评论