Jump to content
  • 0

При появлении скролла, контент, привязанный по середине прыгает


SCHNITZER
 Share

Question

В ie справа отображается полоса по умолчанию.

В остальных нет.

Проблема в том, что сначала страница будет маленькая, потом можно будет открыть блок, и страница разворачивается.

Контент привязан по середине. А с появлением полосы прокрутки 100% изменяется, и контент прыгает, не приятно.

Сделать полосы прокрутки сразу - так появляется еще и полоса внизу, не очень нра.

надо, что бы способ работал тут:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ru" xml:lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>Поиск по символам</title>
<style type="text/css">
*{ margin: 0; padding: 0;}
html,body { height: 100%; min-width: 800px;}
body
{background:grey;}
#page { margin: 0 auto; min-height: 100%; width: 800px; overflow: hidden; }
* html #wrap { height: 100%; overflow: visible;}
#footer { margin: -50px 0 0;background: red; height: 50px;}
#basis { background: blue; margin-bottom: 220px;}
</style>

</head>

<body>

<!--Сама страница-->
<div id="page">

<div id='blackBlock' style='display:block; width:400px; height:400px; background:black; border:2px solid white;'></div>

<!-- /Сама страница-->
</div>

<!--Footer-->
<div id="footer">

<!-- /Footer-->
</div>

</body>
</html>

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy