开发者

Horizontal overflow occuring with CSS3 3D transformations

I have a problem on http://mr.si/ with CSS3 3D transformation. I am doing it plainly for fun and exploring new CSS functions but it disturbs me.

The problem occurs when you hover over th开发者_开发知识库e last two items in a row. Additionally to wanted effect something unwanted happens - element overflows horizontally dramatically and horizontal scroll bar appears which is not pleasant at all.

Maybe its a WebKit bug but its occurring in the latest Chrome Developer build and in Safari 5 so probably it's not.

Any idea what I did wrong?

EDIT: Worth noting that I changed the site so this is no longer relevant :P


To tell you the truth your problem left me flabbergasted, it looks like a browser bug to me.

However, I found a simple fix:

#main section {
overflow: hidden;
// the rest of your css declarations
}

It's more of a patch than an insight of why it's doing weird stuff, but I hope it helps.

Cheers!

Edit: Solved it with....

header[role="banner"], #main, #main + footer {
  overflow: hidden;
  padding: 0 20px;
  //yourcode
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜