Title: テーブルのth高さを変更したい。
Last modified: 2019年1月28日

---

# テーブルのth高さを変更したい。

 *  解決済 [seta181030](https://ja.wordpress.org/support/users/seta181030/)
 * (@seta181030)
 * [7年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeth%e5%b9%85%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%9f%e3%81%84%e3%80%82/)
 * テーブルのth高さ部分を変更したのですが、CSSで指定をしても変更されません。
    どなた
   かご教示頂けますと助かります。
 * ローカルサイトで制作中ですのでページリンクはありません。
    また、デザインはくcustomizer
   を使用しています。 [https://ja.wordpress.org/plugins/customizer-export-import/](https://ja.wordpress.org/plugins/customizer-export-import/)
 * プラグイン：Nimble Page Builder
    [https://wordpress.org/plugins/nimble-builder/](https://wordpress.org/plugins/nimble-builder/)(
   当方wordpress初心者となります。)
 * \app\public\wp-content\themes\customizr\assets\front\css\style.min.css
 * #add_payment_method .cart-collaterals .cart_totals table td, #add_payment_method.
   cart-collaterals .cart_totals table th, .woocommerce table.shop_table td, .woocommerce
   table.shop_table th, .woocommerce-cart .cart-collaterals .cart_totals table td,.
   woocommerce-cart .cart-collaterals .cart_totals table th, .woocommerce-checkout.
   cart-collaterals .cart_totals table td, .woocommerce-checkout .cart-collaterals.
   cart_totals table th, table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):
   not(.tribe-mini-calendar) td, table:not([id^=wp-calendar]):not(.ui-datepicker-
   calendar):not(.tribe-mini-calendar) th {
    padding: 1.25em; →ここです。 border:
   1px solid #f7f8f9; }
    -  このトピックは[seta181030](https://ja.wordpress.org/support/users/seta181030/)
      が7年、 9ヶ月前に変更しました。

3件の返信を表示中 - 1 - 3件目 (全3件中)

 *  [DRILL LANCER](https://ja.wordpress.org/support/users/rickaddison7634/)
 * (@rickaddison7634)
 * [7年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeth%e5%b9%85%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%9f%e3%81%84%e3%80%82/#post-233709)
 *     ```
        th {
       	padding: 1.25em; //→ここです。
       	border: 1px solid #f7f8f9;
       }
       ```
   
 * paddingはborder（枠線）の内側の余白を表すもので高さとはあまり関係ありません。
   
   高さを変えたいのならheightを使用すると良いでしょう。
 * 例：
 *     ```
       th {
       	padding: 1.25em;
       	border: 1px solid #f7f8f9;
       	height: 2em;
       }
       ```
   
    -  この返信は7年、 9ヶ月前に[DRILL LANCER](https://ja.wordpress.org/support/users/rickaddison7634/)
      が編集しました。
 *  [munyagu](https://ja.wordpress.org/support/users/munyagu/)
 * (@munyagu)
 * [7年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeth%e5%b9%85%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%9f%e3%81%84%e3%80%82/#post-233712)
 * こんにちは
 * 本当にそこなのかどうか、こちらでは分かりようが無いのでどうすれば良いとも言いよう
   がありませんが・・・
 * とにかく、子テーマを作らずにテーマの css ファイルを直接編集してしまうと、テーマ
   をアップデートした時に全て消されてしまいます。
 * [子テーマ](https://www.webcreatorbox.com/tech/wordpress-child-theme)を作成し、
   子テーマ側でその css を上書きする css を記述すれば良いと思います。
    css 自体について
   は、ここは WordPress のフォーラムですのでご自身で勉強してみるか、css について
   聞けるところにお聞きになった方が的確な回答が得られると思います。
 *  トピック投稿者 [seta181030](https://ja.wordpress.org/support/users/seta181030/)
 * (@seta181030)
 * [7年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeth%e5%b9%85%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%9f%e3%81%84%e3%80%82/#post-233991)
 * 返事が遅くなり申し訳ありません。
    thの高さではありませんでした。 余白を狭くした
   かったのですが、CSSで追加をしても変更されなかったので 投稿してみました。もう少し
   自分でやってみます。
 * ありがとうございました。

3件の返信を表示中 - 1 - 3件目 (全3件中)

 トピック「テーブルのth高さを変更したい。」には新たに返信することはできません。

## タグ

 * [table](https://ja.wordpress.org/support/topic-tag/table/)
 * [th](https://ja.wordpress.org/support/topic-tag/th/)
 * [WordPress](https://ja.wordpress.org/support/topic-tag/wordpress/)

 * フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3件の返信
 * 3人の参加者
 * 最後の返信者: [seta181030](https://ja.wordpress.org/support/users/seta181030/)
 * 最後の活動: [7年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%aeth%e5%b9%85%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%9f%e3%81%84%e3%80%82/#post-233991)
 * 状態: 解決済

## トピック

### 人気のトピック

### 返信がないトピック

### サポート関連ではないトピック

### 解決済みのトピック

### 未解決のトピック

### すべてのトピック
