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)
-   -   FireFox Bottom DIV Alignment (https://vborg.vbsupport.ru/showthread.php?t=201499)

Digital Jedi 01-12-2009 10:00 AM

FireFox Bottom DIV Alignment
 
I'm having trouble getting a DIV to align to the bottom of the browser window in FireFox. It's a container that holds all the forum content. It starts wrapping at the top of the header template and closes off in the footer template just before the bit of Javascript that comes at the end. It's perfectly flush in the top margin, but nothing makes it flush at the bottom of the forum in FireFox. Works fine in IE.

I've tried everything from setting a negative margin for the bottom of the container to setting a 100% height to the body and to the container. Setting the html to 100% only seemed to make things worse. I've tried an absolute position, cleared floats on both sides. I'm at a loss as to what to do.


Code:

#dj_container {width:90%; height:100%; background:#33414B; margin:0 auto 0 auto; padding:70px 20px 0 20px;}
This is the last thing I've tried as of posting this, with the body set to 100% height.

Bellardia 01-12-2009 11:19 AM

What your doing is actually a pretty difficult task to accomplish in all browsers.

You'll need a specific rule for ie.
In ie you set the height of the container to 100%.
In other browsers you set min-height to 100%.

Digital Jedi 01-12-2009 11:46 AM

I forgot all about min-height.

Well, it appears my problem was related to neither the DIV nor the browser necessarily. I had some nested DIVs at the bottom of the container using floats inside of a master DIV. For some strange reason, I had set the margin bottom of one of the floating DIVs rather then the bottom margin of the master DIV to give me the spacing I wanted. Moved the margin to the correct DIV, the master for the floating ones, and the spacing problem went away. Perhaps I should try sleeping every now and again. I hear it works for some people.


All times are GMT. The time now is 09:15 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.01156 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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