インラインスタイルを使用してHTMLメールを作成しています。Outlookで送信して、ブラウザの再フォーマットを回避する最善の方法です。下の2つのリンクを中心にしたいのですが、それはOutlookで動作させるための唯一の方法なので、私は表のセルに入れます。私は、2つのリンクをページの背景とパディングに合わせて表示することを希望しますが、インラインスタイルや表を使用して行う方法はわかりません。誰も助けることができますか?ありがとう!インラインスティールを使用してhtml電子メールで水平方向にセンタリングする
<!DOCTYPE html>
<html>
<head>
<title>email blast re films</title>
</head>
<body>
<table>
<tr>
<td style="padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px; font-size: 14px; background: #3D87F5; color: white;">
<a href="http://bartonlewisfilm.com/artwork/4258558-wall-cuts-train-stations-New-York-City-excerpt.html" style="padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px; background: #3D87F5; text-decoration: none; color: white; border-radius: 5px;" title="watch wall cuts, train stations, New York City" target="_blank;">Watch my film "wall cuts, train stations, New York City"</a>
</td>
</tr>
</table>
<table>
<tr>
<td style="padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px; font-size: 14px; background: #3D87F5; color: white;">
<a href="http://http://bartonlewisfilm.com/artwork/4264539-red-hook-rush-hour-excerpt.html" style="padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px; background: #3D87F5; text-decoration: none; color: white; border-radius: 5px;" title="watch red hook, rush hour" target="_blank;">Watch my film "red hook, rush hour"</a>
</td>
</tr>
</table>
<table>
<tr>
<td style="font-size: 14px; text-align: center; padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px; background: #3A8E47;">
<a href="http://www.bartonlewisfilm.com" style="display: inline-block; padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px; background: #3A8E47;
text-decoration: none; color: white;" title="visit bartonlewisfilm.com" target="_blank;">bartonlewisfilm.com</a> | home (718) 399-8344 | cell (347) 325-4415
</td>
</tr>
</table>
</body>
</html>
セルのコンテンツを中央に配置する場合は、td {} text-align:center;にスタイルを追加できます。縦方向に整列:中央; – bdalina
はテキストをtdの中に集中させますが、私はページ上にtdを中心にしたいと思います。 –
次にdiv内にテーブルを置いてdiv絶対値を – bdalina