开发者

Website moves when going to a different page

开发者 https://www.devze.com 2023-03-28 08:44 出处:网络
my website http://www.oblivionro.net/ has a problem where it moves down a bit when visiting a different page. For instance, when visiting the \"Rules\" page from the main website, the container \"move

my website http://www.oblivionro.net/ has a problem where it moves down a bit when visiting a different page. For instance, when visiting the "Rules" page from the main website, the container "moves" down a bit.

Anyone 开发者_运维问答know what might be causing this? I can't seem to isolate the problem.


Believe it or not..

..the problem is that the homepage has this in a different place to where the "Rules" page does:

    <p>
      <!--<strong>Powered by Flux Control Panel ... -->
    </p>
    <p>
      <!--Page generated in <strong>0.3699</strong> ... -->
    </p>

Even though that's near the end of your page, it's causing the problem - specifically: the margin-top on those p elements is. Welcome to the wonders of collapsing margins.

The simplest way to fix this is to remove the <p> tags that wrap the comments.

0

精彩评论

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