• 締切済み

tableの中にtableを作ると上部によらない

tableの中に更にtableを作りたいのですが、内側のtableが上のほうに配置されず真ん中に出てしまいます。valign=topを使ったのですがうまくいきません。何か方法はありますでしょうか? <table height=500>   <tr><td> ---------- ここと ------------ <table height=250> <tr><td></td></tr> <tr><td></td></tr> </table> ---------- ここにかなりスペースが出来てしまう(*_*) </tr></td> </table>

  • HTML
  • 回答数6
  • ありがとう数6

みんなの回答

  • k0021
  • ベストアンサー率26% (32/120)
回答No.6

初めのころは、tableの中に更にtableを作っていたのですが 今は、borderを使用して罫線を引いているので 記憶では ><TD><Table> たしか <TD><Table> のように改行無しで対応した記憶です 改行の取り方によりスペースが出来てしまう タグ も有りますのでチェックしてね

toto0719
質問者

お礼

なるほど、試してみます。ありがとうございます。

  • goldfox
  • ベストアンサー率49% (123/249)
回答No.5

valign="top"は<table>につけるものではなく、 中身を上寄せしたい<td>につけるものです。

toto0719
質問者

お礼

そんなところから違かったとは(^^ゞ ありがとうございます、調整しなおします。 また教えてください。

  • outbrave
  • ベストアンサー率60% (231/380)
回答No.4

不要な全角スペースを全て削除してください。

toto0719
質問者

お礼

おーーー、消えました(^.^) ありがとうございます、助かりました。余計なスペースは 要注意ですね。

回答No.3

tableタグにcellpadding="0"とcellspacing="0"を追加して下さい。 <table cellpadding="0" cellspacing="0">

toto0719
質問者

お礼

ありがとうございます。1度トライしてみます。

toto0719
質問者

補足

実際のタグはこんな感じなんですが、bgcolor=#ffffffの中の6個の table(box)をより近づけたいのですが・・・ 素人なものでご教授ください。 <HTML> <HEAD> <TITLE>sample</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis"> <BODY bgcolor=#000000 topmargin="0"> </head> </HEAD> <table width=592 align=center CELLPADDING=0 CELLSPACING=0 valign=top> <tr><td bgcolor=#000000> <TABLE WIDTH=592 BORDER=0 CELLPADDING=0 CELLSPACING=0 valign=top> <TR><TD><A Href="../index.html"><Img Src="logo1.jpg" Width="592" Height="30" border=0></A></td></TR> <TR><TD><Img Src="logo3_01.jpg" Width="102" Height="26" border=0><Img Src="logo3_02.jpg" Width="99" Height="26" border=0><Img Src="logo3_03.jpg" Width="99" Height="26" border=0><Img Src="logo3_04.jpg" Width="100" Height="26" border=0><Img Src="logo3_05.jpg" Width="91" Height="26" border=0><Img Src="logo3_06.jpg" Width="101" Height="26" border=0></TD></TR> <TR><TD Width="592" Height="401"><Img Src="mame2_01.jpg" Width="592" Height="401"></TD></TR> <TR><TD WIDTH=592 valign=top bgcolor=#ffffff> <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top > <!-- 1 -->    <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A valign=top></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887 valign=top><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A valign=top></Td></Tr> <Tr><Td colspan=2 valign=top><br></Td></Tr> </table> <!-- 2 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 3 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 4 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 5 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </Table> <!-- 6 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </Table> </td></tr> </table> </BODY> </HTML>

  • issa_srv
  • ベストアンサー率44% (40/89)
回答No.2

<tr>と<td>がタグが反対です。 インデントをきっちり付けないとミスが増えますよ。 <table height=500 border="1"> <tr> <td valign="top"> <table height=250 border="1"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </td> </tr> </table>

toto0719
質問者

お礼

ありがとうございます。1度トライしてみます。

toto0719
質問者

補足

実際のタグはこんな感じなんですが、bgcolor=#ffffffの中の6個の table(box)をより近づけたいのですが・・・ 素人なものでご教授ください。 <HTML> <HEAD> <TITLE>sample</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis"> <BODY bgcolor=#000000 topmargin="0"> </head> </HEAD> <table width=592 align=center CELLPADDING=0 CELLSPACING=0 valign=top> <tr><td bgcolor=#000000> <TABLE WIDTH=592 BORDER=0 CELLPADDING=0 CELLSPACING=0 valign=top> <TR><TD><A Href="../index.html"><Img Src="logo1.jpg" Width="592" Height="30" border=0></A></td></TR> <TR><TD><Img Src="logo3_01.jpg" Width="102" Height="26" border=0><Img Src="logo3_02.jpg" Width="99" Height="26" border=0><Img Src="logo3_03.jpg" Width="99" Height="26" border=0><Img Src="logo3_04.jpg" Width="100" Height="26" border=0><Img Src="logo3_05.jpg" Width="91" Height="26" border=0><Img Src="logo3_06.jpg" Width="101" Height="26" border=0></TD></TR> <TR><TD Width="592" Height="401"><Img Src="mame2_01.jpg" Width="592" Height="401"></TD></TR> <TR><TD WIDTH=592 valign=top bgcolor=#ffffff> <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top > <!-- 1 -->    <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A valign=top></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887 valign=top><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A valign=top></Td></Tr> <Tr><Td colspan=2 valign=top><br></Td></Tr> </table> <!-- 2 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 3 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 4 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 5 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </Table> <!-- 6 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </Table> </td></tr> </table> </BODY> </HTML>

  • outbrave
  • ベストアンサー率60% (231/380)
回答No.1

<table height=500>   <tr><td valign="top"> ---------- ここと ------------ valign で上になると思いますが?

toto0719
質問者

お礼

ありがとうございます。1度トライしてみます。

toto0719
質問者

補足

実際のタグはこんな感じなんですが、bgcolor=#ffffffの中の6個の table(box)をより近づけたいのですが・・・ 素人なものでご教授ください。 <HTML> <HEAD> <TITLE>sample</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis"> <BODY bgcolor=#000000 topmargin="0"> </head> </HEAD> <table width=592 align=center CELLPADDING=0 CELLSPACING=0 valign=top> <tr><td bgcolor=#000000> <TABLE WIDTH=592 BORDER=0 CELLPADDING=0 CELLSPACING=0 valign=top> <TR><TD><A Href="../index.html"><Img Src="logo1.jpg" Width="592" Height="30" border=0></A></td></TR> <TR><TD><Img Src="logo3_01.jpg" Width="102" Height="26" border=0><Img Src="logo3_02.jpg" Width="99" Height="26" border=0><Img Src="logo3_03.jpg" Width="99" Height="26" border=0><Img Src="logo3_04.jpg" Width="100" Height="26" border=0><Img Src="logo3_05.jpg" Width="91" Height="26" border=0><Img Src="logo3_06.jpg" Width="101" Height="26" border=0></TD></TR> <TR><TD Width="592" Height="401"><Img Src="mame2_01.jpg" Width="592" Height="401"></TD></TR> <TR><TD WIDTH=592 valign=top bgcolor=#ffffff> <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top > <!-- 1 -->    <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A valign=top></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887 valign=top><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A valign=top></Td></Tr> <Tr><Td colspan=2 valign=top><br></Td></Tr> </table> <!-- 2 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 3 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 4 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </table> <!-- 5 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </Table> <!-- 6 -->  <Table width=560 Border=1 Align=center CellSpacing=0 CellPadding=5 valign=top>   <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr>  <Tr><Td Height="18" colspan=3 bgcolor=#DEB887><Font Color="#A52A2A"><b>【質問】</b> </Td></Tr>  <Tr><Td Height="2" colspan=3 bgcolor=#A52A2A></Td></Tr> <Tr><Td colspan=2><br></Td></Tr> </Table> </td></tr> </table> </BODY> </HTML>

関連するQ&A

  • テーブルの位置

    最初からテーブルを一番上に持ってくるにはどうしたら良いですか?CSSで設定するのでしょうか? 【】で囲ってある部分を最初から上にしたいのです。入れ子のようにしてテーブルを挿入すると必ず真中になってしまいます。 <table width=\"800\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" height=\"500\"> <tr bgcolor=\"#FFFF00\"> <td valigin=\"top\" valign=\"top\" colspan=\"4\" height=\"64\">  </tr> <tr> <td colspan=\"3\" height=\"2\">  </td> </tr> <tr> 【<td width=\"170\"> <table width=\"170\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td> </td> </tr> </table>】 </td> <td width=\"238\" height=\"352\"> </td> <td width=\"197\"> </td> </tr> <tr> <td colspan=\"3\"> </td> </tr> </table>

  • テーブルの位置

    最初からテーブルを一番上に持ってくるにはどうしたら良いですか?CSSで設定するのでしょうか? 【】で囲ってある部分を最初から上にしたいのです。入れ子のようにしてテーブルを挿入すると必ず真中になってしまいます。 <table width="800" border="1" cellspacing="0" cellpadding="0" height="500"> <tr bgcolor="#FFFF00"> <td valigin="top" valign="top" colspan="4" height="64">  </tr> <tr> <td colspan="3" height="2">  </td> </tr> <tr> 【<td width="170"> <table width="170" border="1" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table>】 </td> <td width="238" height="352"> </td> <td width="197"> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table>

    • ベストアンサー
    • HTML
  • テーブルの隙間をなくす

    テーブルの中に作ったテーブルを一番上に配置したいのですが、どうすれば良いでしょうか?テーブルの下で改行すると上に行くのですが、それだとしたがあまります。 HTMLはこれです。よろしくお願いします。 <table width="800" border="0" cellspacing="0" cellpadding="0" height="600"> <tr> <td> <TABLE width="100%"> <TBODY> <TR> <TD width="241" height="2">  </TD> <TD width="511" align="right" valign="bottom" style="font-size : 8pt;" height="2"> </TD> </TR> </TBODY> </TABLE> </td> </tr> </table>

    • ベストアンサー
    • HTML
  • テーブル内のテーブルの高さを揃えたい。

    CGIの表示部分を改造中です。 下のソースをhtmlファイルにして見てもらったら判ると思うのですが、 <TABLE border="0"> <COL span="4" width="50"> <TR> <TD valign="top"> <TABLE border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc" height="100%"> <TR> <TD bgcolor="#ffffff">こんな風に</TD> </TR> </TABLE> </TD> <TD valign="top"> <TABLE border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc" height="100%"> <TR> <TD bgcolor="#ffffff">枠を置いたときに</TD> </TR> </TABLE> </TD> <TD valign="top"> <TABLE border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc" height="100%"> <TR> <TD bgcolor="#ffffff">100%のサイズ指定しても合わない高さを</TD> </TR> </TABLE> </TD> <TD valign="top"> <TABLE border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc" height="100%"> <TR> <TD bgcolor="#ffffff">ちゃんと揃えて配置したい</TD> </TR> </TABLE> </TD> </TR> </TABLE> 高さを100%にしても広がりませんでした。 どうにかして高さ(下の位置)を揃えることは出来ないでしょうか?

    • ベストアンサー
    • HTML
  • テーブルの中にテーブルを入れ込んで・・・

    最近、質問ばかりしてるような気がするのですが・・・ m(__)m 親テーブルのセルの中に子テーブルを入れ込んで 子テーブルを親テーブルのセルの縦位置を中央に表示させたいのですがうまく行きません NN6.Xでは表示されるのですがIEだと上寄せに 表示されてしまいます。 これはIEの仕様でしょうがないのでしょうか? (↑けしてダジャレではありません(^^ゞ) セル内配置でテキストや画像は上手く 中央位置に出来るのですが子テーブルが出来ないです なぜでしょうか? 参考のためにソースコードを --------------------------------- <table width="100%" border="1" height="100%"> <tr> <td align="center" valign="middle"> <table width="50%" border="1" height="50%"> <tr> <td> </td> </tr> </table> </td> </tr> </table> ------------------------------------- よろしくお願いします。 スタイルシートやjavascriptを使ったやりかた とかもあるのでしょうか?

    • ベストアンサー
    • HTML
  • テーブル内にスペースができてしまうのはなぜ?

    テーブル内にさらにテーブルを入れた際、一部のセルだけ上部にスペースが空いてしまい 困っています。 下記のhtmlですが、左はテーブル内にテーブルを入れてもスペースができませんが 真ん中だけどうしても上にスペースが空いてしまいます。 全角スペースが隠れていないか確認しましたが無理でした。 ネットでもいろいろ調べましたが分かりませんでした・・・。 これは何が原因なのでしょうか? よろしくお願いします。 --------------------------------------------------------- <html> <head> </head> <body> <table border="1" width="750"> <tr><td width="150" valign="top"> <table border="1" cellspacing="0" cellpadding="0" width="140"> <tr align="center"><td bgcolor="#green">menu</td></tr> </table> </td> <td valign="top" width="480"> <table border="1" cellspacing="5" cellpadding="0" width="480"> <tr><td bgcolor="#d8de97" height="15" align="left" colspan="2">見出し</td></tr>  <tr><td bgcolor="#FFFFCC" width="240">項目名</td>  <td bgcolor="#FFFFCC" width="240">項目名</td></tr>  <tr><td bgcolor="#FFFFCC" width="240">項目名</td>  <td bgcolor="#FFFFCC" width="240">項目名</td></tr> </table> </td> <td width="120" valign="top">広告部分</td></tr> </table> </body> </html>

    • ベストアンサー
    • HTML
  • テーブルレイアウト

    テーブルレイアウトで困っています。 <table width="100%" height="100%" border="1"> <tr> <td colspan="2" valign="top" height="100">全体の幅は100%</td> </tr> <tr> <td width="150" valign="top">左のセル<br>幅150</td> <td valign="top">右のセル<br>幅指定なし</td> </tr> </table> これだと問題なく表示されるのですが、 <table width="100%" height="100%" border="1"> <tr> <td colspan="2" valign="top" height="100">全体の幅は100% 少し長い文章を入れる</td> </tr> <tr> <td width="150" valign="top">左のセル<br>幅150</td> <td valign="top">右のセル<br>幅指定なし</td> </tr> </table> このように1列目のセルに長い文章を入れると、2列目の左のセルの幅が勝手に広がってしまいます。 何が原因で、対処法はないでしょうか? Netscape7.1ではこうならないんですが、IE6では勝手に崩れてしまいます。 よろしくお願いします。

    • ベストアンサー
    • HTML
  • 背景画像に任意の位置でテキストを配置する

    CSSで背景画像を読み込み、に任意の位置でテキストを配置するには テーブルでとspace.gifを使ってやるしかないのでしょうか? もっとスマートな方法はないんでしょうか? CSS .ac1 { background-image: url(images/index_main01_02.jpg); width: 629px; height: 390px; } HTML <table class="ac1"> <tr><td valign="top"><img src="images/space.gif" width="239" height="60" class="over" /></td></tr> <tr><td valign="top">これはテストですこれはテストですこれはテストです</td></tr> <tr><td valign="top"><img src="images/space.gif" width="239" height="60" class="over" /></td></tr></table>

    • ベストアンサー
    • CSS
  • テーブルの枠の中にテーブルを設置

    TOPページに下記のような大きな4等分の枠なしテーブルを作り、中にテーブルを埋め込みたいと思っています。 <TABLE border="0" width="700" height="500"> <TR> <TD>●1</TD> <td>●2</td></TR> <TR> <TD align="left" valign="bottom">◎1</TD> <td align="center" valign="middle"> <table bordercolordark="white" bordercolorlight="black" border="1" cellpadding="8" cellspacing="0" bgcolor="greenyellow"><tr><td align="center"> <table bordercolordark="white" bordercolorlight="black" border="1" cellpadding="4" cellspacing="0" bgcolor="#ccff99"><tr><td align="center"><font color="mediumseagreen">★ ★ ★</font> おしらせ <font color="mediumseagreen">★ ★ ★</font></td></tr> <tr><td bgcolor="white"> <textarea cols="28" rows="5"> ここに文字 </textarea> </td></tr></table> <br> <table bordercolordark="white" bordercolorlight="black" border="1" cellpadding="3" cellspacing="0" bgcolor="white"><tr><td bgcolor="white"> 最終更新 ≫ </td></tr></table> </td></tr></table> </TR> </TABLE> (HEADの間にスタイルシートを挿入します。) このように書くとテーブルを入れた場所の親テーブルが大きく広がってしまいます。 広がらずにテーブルを形成する方法をご教授下さい。 初心者で申し訳ございません。

    • ベストアンサー
    • HTML
  • IE6/NN7.1のテーブルのheight="100%"

    テーブルの高さの指定 height="100%" なんですが、 IE6とNN7.1で100%で表示されません。 下記の記述に間違いはありますでしょうか? もしかしたら初歩的な問題なんでしょうか? ちなみにIE5.5 MacのIE5.2では表示されました。 困っています。 宜しくお願いいたします。 ーーーーーーーーーーーーーー <table border="0" cellspacing="0" cellpadding="0" height="100%"> <tr> <td valign="top">上</td> </tr> <tr> <td valign="bottom">下</td> </tr> </table> ーーーーーーーーーーーーー

    • ベストアンサー
    • CSS

専門家に質問してみよう