开发者

Centering Flash site on browser zoom in

I have a Flash page that is a bit off center on smaller resolution screens. If the site was centered, and the sides were cut off, then all would be well. But the site starts in the top-left corner, so some content is clipped. I know the problem can be solved in JavaScript, but I'm w开发者_StackOverflowondering if there is a more elegant, possibly CSS-way, to solve the problem.

Thank you


horizontally centering a div using css - something like this:

.content {
  width: 960px;
  margin: 0 auto;
}

that's it.


if you want to center you content:

.content {
    width: 800px;
    height: 600px;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜