сделать css нижний колонтитул оставаться под контентом

0

У меня есть этот css:

.lh_container {
    width:960px;
    margin:0 auto 40px auto;
    position:relative;
}

.lh_footer {
    position:absolute;
    bottom:0;
    width:100%;
    height:60px;            /* Height of the footer */
    background:#6cf;
}

.lh_footer-container {
    display:block;
    width:80%;
    margin: 0 auto;
    overflow: hidden;
}

и этот HTML:

<div class="lh_container">

<div class="lh_footer">
    <div class="lh_footer-container">

    <div class="lh_footer_text">
    &copy; Copyright <?php echo date("Y"); ?>
    </div>

    </div>
</div>

</div><!-- container -->

но нижний колонтитул не останется внизу страницы - как я могу это достичь?

Теги:

1 ответ

3

Используйте fixed а не absolute.

http://jsfiddle.net/pnLyh/

Ещё вопросы

Сообщество Overcoder
Наверх
Меню