vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   TD - vertical alignment top AND bottom? (https://vborg.vbsupport.ru/showthread.php?t=66629)

Dark_Wizard 07-18-2004 09:52 AM

Quote:

Originally Posted by KirbyDE
Hmm ... can you give an example on how to use this?
I can't seem to get it working :(

If I create two divs with
  • position: fixed; top: 0px
  • position: fixed; bottom: 0px
within the cell, they they will be at top and bottom of the screen (in Firefox), or both at top of the cell (in IE).

Same for position: absolute

Ok, I've managed to get it right in IE but not firefox...have same issue as you did...let me play with this a little longer.

Andreas 07-27-2004 09:44 PM

*bump*
Still need a solution :(
Did you have success?

Dean C 07-27-2004 09:55 PM

Turn on quirks mode in IE by sticking this at the top of your HTML documents:

Code:

<?xml version="1.0" encoding="iso-8859-1"?>
Then use height="100%" and have a spacer cell inbetween :)

e.g.

Code:

<table cellpadding="0" cellspacing="0" border="0" style="height: 100%;">
<tr>
<td>img1</td>
<td height="100%">&nbsp;</td>
<td>img2</td>
</tr>
</table>


Andreas 07-27-2004 10:02 PM

Doesn't work at all :(

If I use
HTML Code:

<table cellpadding="0" cellspacing="0" border="0" style="height: 100%;">
<tr>
<td>This should be at top</td>
</tr>
<tr>
<td height="100%">&nbsp;</td>
</tr>
<tr>
<td>This should be at bottom</td>
</tr>
</table>

It does work in IE (as the original code did too), but not in Firefox.

Dean C 07-28-2004 07:27 AM

Hmm have you outlined the cell that this table is within with a border and checked it is 100% height of the container cell? (in both firefox and IE)

Xenon 07-28-2004 12:05 PM

iirc you have to use the height attribute in the body tag as well.

Andreas 08-02-2004 09:11 PM

*bump*
Still doesn't work :(


All times are GMT. The time now is 11:19 PM.

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.01542 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete