CSS pages not equal even with the same css-file

2019-09-13 03:19发布

This is the site i am using as a test site: http://test.pafo.net/

My problem is that the pages, even thou they are equal, they change in position. If you click on Seite 2 and then Start and keep clicking on them, you will see that the entire container is moving a little.

The only difference between those pages are that Seite 2 has more example text, nothing else.

Whats causing this? Did i forget an attribute in the stylesheet somewhere?

2条回答
放荡不羁爱自由
2楼-- · 2019-09-13 03:51

If you add overflow:scroll; to each page's stylesheet, (on the body element, for example) then a scrollbar will always be rendered even when it's not necessary.

查看更多
趁早两清
3楼-- · 2019-09-13 03:54

Seite 2 gets a scrollbar. That alters the page dimensions. Because your content is centered, it appears to move to the left half the width of the vertical scrollbar.

查看更多
登录 后发表回答