Jump to content
  • 0

А как сделать подвал всегда был внизу?


Bismuth
 Share

Question

А как сделать подвал всегда был внизу?

вот html


<body>
<div class="wrapper">
<div class="top">
<div class="logo">
<a href="http://homehosts.ru"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/logo.png" width="194" height="38"></a>
</div><!--EndLogo-->
<div class="regit">
<jdoc:include type="modules" name="regit" />
</div><!--EndRegit-->
</div><!--EndTop-->
<div class="menu_box">
<div class="left_menu"></div><!--EndLeftMenu-->
<div class="center_menu">
<jdoc:include type="modules" name="menu_top" />
</div><!--EndCenterMenu-->
<div class="right_menu"></div><!--EndRightMenu-->
</div><!--EndMenuBox-->
<div class="box">
<div class="right_box">
<jdoc:include type="modules" name="right_box" />
</div><!--EndBox-->
<div class="left_box">
<jdoc:include type="modules" name="left_box" />
</div><!--EndLeftBox-->
<div class="center_box">
<div class="banner">
<jdoc:include type="modules" name="banner" />
</div><!--EndBanner-->
<div class="content">
<jdoc:include type="modules" name="content" />
<jdoc:include type="component" style="my"/>
</div><!--EndContent-->
<div class="clear"></div><!--EndClear-->

</div><!--EndCenter-->
</div><!--EndBox-->
</div><!--EndWrapper-->
<div class="footer">
<div class="right_footer">
<jdoc:include type="modules" name="right_footer" />
</div><!--EndRightFooter-->
<div class="left_footer">
<jdoc:include type="modules" name="left_footer" />
</div><!--EndLeftFooter-->
<div class="center_footer">
<jdoc:include type="modules" name="center_footer" />
</div><!--EndCenterFooter-->
</div><!--EndFooter-->
</body>

И часть CSS


/* Center */
.box {
margin:0 auto;
margin-top:20px;
width:1000px;
height:auto !important;
height:100%;
min-height:100%;
}
.center_box {
margin:0 auto;
width:600px;
height:auto !important;
height:100%;
min-height:100%;
}
/* Content */
.content {
margin:0 auto;
width:600px;
height:auto !important;
height:100%;
min-height:100%;
}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Если вам надо просто прижать, а не понять магию рецепта, то заходите на http://csstemplater.com/, создавайте нужный вам макет и выбирайте "прижать футер к низу". Дальше качаете макет и смотрите, как там сделано.

Link to comment
Share on other sites

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