私はこの日のプロジェクトを作り、クロムの検査ウィンドウから学び、より多くの知識を得ることができました。私はしばしば問題を見つけるために推測しています。私は電子メールのニュースレターに取り組んでおり、テーブルを使用しています。パッディング用のインスペクタウィンドウを使用する
テキストと色を含む2つのテーブルを作成しています:Example Page。私が596を下回ると、赤と緑の色はテキストまでパディングされます。ここでは、緑と赤の色は以下の列に対して敷設され
:私はそれがこのように見えたことをしたいと思います。
私は検査窓を開けましたが、ほとんど私は推測しています。では、この問題を他の人々がどのように攻撃するのでしょうか?私はパディングが0pxであることがわかります。だから私は立ち往生している。
私はFoundationフレームワークを使用していますので、多くのコアCSSがあります。
HTML
<style>
/* Original Foundation Stylesheet has not been touched */
.columns {
border: 1px solid #333;
}
.first--column__color {
background-color: #cd3f33;
width: 1%;
}
.second--column__color {
background-color: #5aa23c;
width: 1%;
}
/* Removes 16px left-padding. Used in color columns*/
table th, table td {
padding: 0 !important;
}
.content-text {
padding: 10px 10px 10px 10px !important;
}
</style>
</head>
<body>
<!-- <style> -->
<table class="body" data-made-with-foundation>
<tr>
<td class="float-center" align="center" valign="top">
<center>
<table align="center" class="container">
<tbody>
<tr>
<td>
<table class="row">
<tbody>
<tr>
<th class="small-12 large-1 columns first first--column__color" style="width:1%;">
<table>
<tr>
<th>
<p class="text-left"></p>
</th>
</tr>
</table>
</th>
<th class="small-12 large-5 columns first content-text">
<table>
<tr>
<th>
<h5><strong>This is headline 1</strong></h5>
<p class="text-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</th>
</tr>
</table>
</th>
<th class="small-12 large-1 columns first second--column__color" style="width:1%;">
<table>
<tr>
<th>
<p class="text-left"></p>
</th>
</tr>
</table>
</th>
<th class="small-12 large-5 columns first content-text">
<table>
<tr>
<th>
<h5><strong>This is headline 2</strong></h5>
<p class="text-left">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</th>
</tr>
</table>
</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</center>
</td>
</tr>
</table>
</body>
私の最初の投稿ですので、1つ以上のリンクを投稿するには十分な評判がありません。したがって、私はここで喧嘩にリンクしています:私はこれのために偽物を作った:https://jsfiddle.net/tknwytpk/ – Mimi