| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > Вёрстка веб-сайтов > Футер внизу - при вложенных дивах |
| Автор: mogul82 17.2.2010, 22:07 |
| Получаеться если дивы так стоят: <div class="content-holder"> <div id="content"> Content text Content textContent text Content textContent textContent text Content textContent textContent text </div> </div> <div id="footer">footer</div> А мне надо что бы все в одном диве было: <div id="container"> <div id="body">Тело</div> <div id="footer">Футер</div> </div> Подскажите как его (футер) прибить к низу? Как стили делать? Спасибо заранее. |
| Автор: shapovala 18.2.2010, 15:22 |
| #container {position:relative; padding-bottom: 100px;} #footer {position: absolute; bottom: 0; height: 80px;} |