danial72 Posted August 16, 2011 Report Share Posted August 16, 2011 (edited) #container { width:900px; height:auto !important; height:100%; min-height:100%; background-color:white; margin: 5px auto 0;}<div id="container">[indent]<div id="header"></div> <div id="leftmenu"> <div id="logo"></div> <ul> <li><a href="index.php">Главная</a></li> <li><a href="index.php?p=articles">Статьи</a></li> <li><a href="index.php?p=about">Обо мне</a></li> <li><a href="index.php?p=feedback">Обратная связь</a></li> </ul></div><div id="content">много текста</div>[/indent]</div>Не работает в google chrome В опере работает В мозиле не работаетЧто не так? Edited August 16, 2011 by danial72 Quote Link to comment Share on other sites More sharing options...
0 Softlink Posted August 16, 2011 Report Share Posted August 16, 2011 для html и body указана высота? Quote Link to comment Share on other sites More sharing options...
0 psywalker Posted August 16, 2011 Report Share Posted August 16, 2011 А как должно работать? Цель? Quote Link to comment Share on other sites More sharing options...
0 chiffenok Posted August 16, 2011 Report Share Posted August 16, 2011 (edited) аналогичная проблема, код другой конечно но суть такая же, в body (для него работает height:100%) есть wrapper для него такое же свойство не работает его высота захватывает только первый див во wrapper, все это показывает firebug там есть такая синяя подсветка тега, и когда например задаешь цвет бг то блок в одном месте а заливка выше не в том местеу меня уже была такая проблема но тогда я забила , это был просто тестовый сайт, а щяс важно знать, могу приложить файлы если нужно Edited August 16, 2011 by chiffenok Quote Link to comment Share on other sites More sharing options...
0 krok Posted March 1, 2012 Report Share Posted March 1, 2012 кто нибудь решил данную проблему с min-height ? у меня тоже только в опере работает! Quote Link to comment Share on other sites More sharing options...
0 Switch74 Posted March 1, 2012 Report Share Posted March 1, 2012 (edited) уберите для #containerheight:auto !important;height:100%;и поставьте для html,bodyheight:100%; Edited March 1, 2012 by Switch74 Quote Link to comment Share on other sites More sharing options...
Question
danial72
#container {width:900px;
height:auto !important;
height:100%;
min-height:100%;
background-color:white;
margin: 5px auto 0;
}
[indent]<div id="header"></div>
<div id="leftmenu">
<div id="logo"></div>
<ul>
<li><a href="index.php">Главная</a></li>
<li><a href="index.php?p=articles">Статьи</a></li>
<li><a href="index.php?p=about">Обо мне</a></li>
<li><a href="index.php?p=feedback">Обратная связь</a></li>
</ul>
</div>
<div id="content">много текста</div>[/indent]
</div>
Не работает в google chrome
В опере работает
В мозиле не работает
Что не так?
Edited by danial72Link 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.