お世話になっております。
ラーメン 1000円
餃子 300円
上記のような表を作りたいと思っております。
html
1<table width="83%" id="table01"> 2<tr> 3<th scope="col"><p>料理</p></th> 4<th scope="col"><p>価格(税別)</p></th> 5</tr> 6 7<tr> 8<td><p>ラーメン</p></td> 9<td class="tyuuou"><p>\1,000-</p></td> 10</tr> 11 12<tr> 13<td><p>餃子</p></td> 14<td class="tyuuou"><p>\300-</p></td> 15</tr> 16</table>
css
1table#table01 { 2 width:100%; 3 border: 1px #E3E3E3 solid; 4 border-collapse: collapse; 5 border-spacing: 0; 6} 7table#table01 th { 8 padding: 5px; 9 border: #E3E3E3 solid; 10 border-width: 0 0 1px 1px; 11 background: #F5F5F5; 12 font-weight: bold; 13 line-height: 120%; 14 text-align: center; 15} 16table#table01 td { 17 padding: 5px; 18 border: 1px #E3E3E3 solid; 19 border-width: 0 0 1px 1px; 20 text-align: center; 21 vertical-align: middle; 22} 23 24table#table01 td.tyuuou { 25 background-color: #0ff; 26} 27
とのように表記すると
\1,000-
と\300-
の文末が揃っていないため気持ち悪いと思っております。
ネット上だとpositionやらalineやら表記があるのですが
効かないので自分の調査能力の低さに絶望しております。
一般的にはどのように解決するのか伺ってよろしいでしょうか?
上記お問い合わせいたします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。