开发者

CSS keeping getting pushed down [closed]

开发者 https://www.devze.com 2023-04-01 03:54 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answ开发者_Python百科ered in its current for
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answ开发者_Python百科ered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消