Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: 100% height of a div inside a TD

  • Subject: Re: 100% height of a div inside a TD
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Mon, 29 Aug 2005 10:13:39 +0100
  • Followup-to: alt.html,alt.html.dhtml,alt.html.server-side
  • Newsgroups: alt.html, alt.html.dhtml, alt.html.server-side
  • Organization: schestowitz.com / Manchester University
  • References: <T4zQe.91323$2U1.4552376@news3.tin.it> <r8zQe.91332$2U1.4553043@news3.tin.it> <poghne99hpb1$.dlg@locusmeus.com> <r%zQe.91465$2U1.4562983@news3.tin.it>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [Lamberti Fabrizio] on Monday 29 August 2005 09:50 \__

> sorry this is the table:
> 
>   2
>       2b 1
>       4 5
>       7 8

You mean /this/?

==================================

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<STYLE>
        div.test        {
                background-color:red;
                height:100%;
                width: 100%;
        }
        span.test        {
                background-color:blue;
                height:100%;
                width:100%;
        }
        table.test        {
                border: 1px solid #CCCCCC;
                background-color:yellow;
        }
        td.test        {
                border: 1px solid #CCCCCC;
        }
</STYLE>

<STYLE>
        div.test        {
                background-color:red;
                height:100%;
                width: 100%;
        }

        span.test        {
                background-color:blue;
                height:100%;
                width:100%;
        }
        table.test        {
                border: 1px solid #CCCCCC;
                background-color:yellow;
        }
        td.test        {
                border: 1px solid #CCCCCC;
        }
</STYLE>

<TABLE class=test id=Table1 cellSpacing=0 cellPadding=0
width=300 border=0>
  <TBODY>
  <TR>
    <TD class=test>2<BR>2b</TD>
    <TD class=test>
      <DIV class=test>1</DIV></TD></TR>
  <TR>
    <TD class=test>4</TD>
    <TD class=test>5</TD></TR>
  <TR>
    <TD class=test>7</TD>
    <TD=20
class=test>8</TD></TR></TBODY></TABLE></DIV></FONT></DIV></DIV></BODY></HTML>

==================================

In UseNet, you should never post HTML messages. It causes confusion and
results on chaos. The above is _not_ a copy extracted from the source (Els
and others, you can copy and paste the above to view). I had to clean up
about 30 invalid characters just to be able to view it as a page.

I think what you want is <td valign="center"> or an equivalent in pure CSS.

Hope it helps,

Roy

-- 
Roy S. Schestowitz        /earth: file system full
http://Schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index