I am working on a website with content flying from the left to the center. When the animation starts, the horizontal scroll bar is shown and then disappeared as the animation completed. This causes a little shake on the content movement. A simple workaround is to disable the horizontal scroll bar by setting the body overflow-x to hidden.
body { overflow-x: hidden; }
Done =)
Reference: StackOverflow – Disable browsers vertical and horizontal scrollbars
That’s not too good to use this style with whole HTML body.
I prefer you always use DIV and apply the CSS style to the DIV.
Maybe you can come up with an example with both HTML markup and CSS.
LikeLike
Depends on how to use it la~ applying that to the body is the most straight forward way to illustrate this example~ =P
LikeLike
YEAAAH, itswork, I notice if Im not adding “body” wont work in a wordpress CSS. Thanks a lot!!
LikeLike
Good to know that it can help you. =)
LikeLike