A 回答 (5件)
- 最新から表示
- 回答順に表示
No.4
- 回答日時:
No1です
No2さんの回答で良いと思いますが
th, td, table に font:12px/120% serif,Times; を指定した方が良いと思います 作成画面のインチが異なると <Font Size="1"> 指定だと表示が異なりますので
それから趣味の相違か padding: は、使用しないで margin を使用しています
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
では、無く
<th><a href="URL">リンク文字</a></th><th><Font Color="カラーコード">文字</Font></th><th><Font Color="カラーコード">文字</Font></th><th><Font Color="カラーコード">文字</Font></th><th><a href="URL">リンク文字</a></th> ・・・
と思いますが
No.3
- 回答日時:
とりあえず最後のタグの閉め方がおかしいと思いましたが・・・。
</Center></Table><tr></tb></Div>
↓
</Center></td></tr></Table></Div>
tableタグに「style="margin-right:15px;"」を付けると表の枠の外の右側に余白が空きます。
tdにつけると枠内の文字の右側に余白が出来ます。
<Div Align="right">
<table cellpadding="10" bgcolor=#000000 Width="180" Height="100" style="margin-right:15px;">
<tr><td style="margin-right:15px;">
<Center><Font Size="1">
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
<Font Color="URL">文字</Font>文字<a href="URL">文字</a>文字<Font Color="カラーコード">文字</Font>
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
</Center>
</td></tr></Table>
</Div>
No.2
- 回答日時:
<style type="text/css">
#main
{
width:700px;
}
table
{
float:right;
width:500px;
}
th, td, table
{
border:4px outset #000000;
padding: 2px 10px;
}
th
{
color: green;
}
td
{
color: red;
}
</style>
<div id="main">
<table >
<tr>
<th>テストです
</th>
<th>テストです
</th>
<th>テストです
</th>
<th>テストです
</th>
</tr>
<tr>
<th>テストです
</th>
<td>テストです
</td>
<td>テストです
</td>
<td>テストです
</td>
</tr>
<tr>
<th>テストです
</th>
<td>テストです
</td>
<td>テストです
</td>
<td>テストです
</td>
</tr>
<tr>
<th>テストです
</th>
<td>テストです
</td>
<td>テストです
</td>
<td>テストです
</td>
</tr>
</table>
テストテストテストテストテストテストテストテスト
</div>
横幅固定ならこの様にすれば良いと思います。
#mainとtableのwidthをパーセントで指定すれば伸び縮みが出来ます。
No.1
- 回答日時:
<margin-right>属性により右のマージンの指定を設定する。
作成例
<Td style="margin-right:18px;">
文字</Td>
又は、セルにwidth指定をする
作成例
<col span="3" style="width:216px;"><tbody>
参考URL:http://www.tohoho-web.com/css/reference.htm#margin
回答有難う御座います。
<Div Align="right"><table cellpadding="10" bgcolor=#000000 Width="180" Height="100"><tr><td style="margin-right:15px;"><Center><Font Size="1">
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
<Font Color="URL">文字</Font>文字<a href="URL">文字</a>文字<Font Color="カラーコード">文字</Font>
<a href="URL">リンク文字</a><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><Font Color="カラーコード">文字</Font><a href="URL">リンク文字</a>
</Center></Table><tr></tb></Div>
非常にややこしいですが
このように作ってみました。
ですが、横のスペースは反映されていませんでした。
何か良い方法はありませんか?
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
tableタグとformタグの組み合わせ
-
html でのテキスト結合について
-
表とリスト(ulとtable)の違い...
-
Visual Studio で CLR 開発でデ...
-
テーブルの一部分のセルだけに...
-
divで囲んだ文字が消える
-
td要素内のdiv要素をセンタリン...
-
tableのヘッダを固定したい
-
レイヤーとセレクトボックスが...
-
Tableタグ内のspan styleが適応...
-
htmlのテーブルタグについて
-
vbscriptで時計を作りたい
-
入れ子にしたテーブルをheight1...
-
Firefoxを使ってるのですがズー...
-
Dreamweaver デザインビューの...
-
テキストの表示について
-
form要素とtable要素
-
cssで、テーブルのtdの中の文字...
-
テーブルタグの中にdivを含めて...
-
TABLEのセルの中の文字を行単位...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
tableタグとformタグの組み合わせ
-
html でのテキスト結合について
-
テーブルの一部分のセルだけに...
-
同じクラス名はつけないほうが...
-
Tableタグで作成した表の縮小
-
td要素内のdiv要素をセンタリン...
-
Tableタグ内のspan styleが適応...
-
XHTMLに関する質問 順序が逆に...
-
ブラウザによってテーブルのセ...
-
表とリスト(ulとtable)の違い...
-
vbscriptで時計を作りたい
-
formのinputなどの幅100%指定
-
TDタグ内での均等割付の仕方
-
cssで、テーブルのtdの中の文字...
-
センタリングしたページの印刷
-
Firefoxを使ってるのですがズー...
-
divで囲んだ文字が消える
-
Dreamweaver デザインビューの...
-
テーブルの枠線に色が付かない
-
HTMLのテーブルでそれぞれの大...
おすすめ情報