vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Align footer at very bottom? (https://vborg.vbsupport.ru/showthread.php?t=218691)

sebaot 07-15-2009 10:43 PM

Align footer at very bottom?
 
There's a problem with the vbulletin, and you can see it on this site if you click "chat". I've got the same problem. I've got a similar layout with a background that has a white blank space in the middle. The footer will align at the very bottom on pages where you have to scroll down.

However, when a page covers just half the screen, the footer comes up there halfway down the screen. Not at bottom. I tried setting min-height to 100% and using position absolute and bottom 0 to work around this. Unfortunately, when I opened a page that had to scroll, the footer was of course on top of the content but bottom of browser window.

Is there a way to solve this or am I better off forgetting about it? :-)

Freesteyelz 07-15-2009 11:20 PM

You can use the position:fixed to bottom:0 BUT because this particular attribute relies on your browser screen, if you have a page where the content exceeds the screen then your text or image (that's using the fixed value) will overlap with the other content that's shown at the bottom of the browser screen (when the scrollbar is at the top). The absolute value wouldn't resolve that issue either. If that doesn't bother you then you can apply either (1 or 2):

1) Add to the bottom of the footer codes (or at the minimum after $ad_location[ad_footer_end])

Code:

<div style="position:fixed;bottom:0;left:50%;">Testing</div>
2) Or if you prefer using CSS then add in headerinclude template:

Code:

<style type="text/css">
.bottomcontent {
position:fixed;
bottom:0;
left:50%;
}
</style>


Then add to the bottom of the footer codes (or at the minimum after $ad_location[ad_footer_end])

Code:

<div class="bottomcontent">Testing</div>

sebaot 07-20-2009 10:58 PM

It looks like yet another caveat I'm going to have to live with. Thanks for the input, it's good to know it's not worth putting more effort into trying to get it worked out. :-)

Freesteyelz 07-21-2009 04:48 AM

I used to have this issue with signatures. That was easier to manage since I was working within a container rather than a browser.


All times are GMT. The time now is 08:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00996 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete