Post Comments

Post Comments の CSS

テーマHelloには、Post Comments の外観のCSSがないので追加しよう。

Post Comments ウィジェット

  1. Post Commentsを編集
  2. 高度な設定
  3. カスタムCSS
				
					/* コメントフォーム全体 */
.comment-form {
  max-width: 700px;
  margin: 2em auto;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
}

/* 入力フィールド */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* 送信ボタン */
.comment-form input[type="submit"] {
  background: #0073e6;
  color: #fff;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.comment-form input[type="submit"]:hover {
  background: #005bb5;
}
				
			

Post Comments を編集

  1. Post Commentsを編集 
  2. 高度な設定
  3. カスタム CSS に以下を挿入


    /* コメントフォーム全体 */
    .comment-form {
    max-width: 700px;
    margin: 2em auto;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    }

    /* 入力フィールド */
    .comment-form input[type=”text”],
    .comment-form input[type=”email”],
    .comment-form input[type=”url”],
    .comment-form textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    }

    /* 送信ボタン */
    .comment-form input[type=”submit”] {
    background: #0073e6;
    color: #fff;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    }

    .comment-form input[type=”submit”]:hover {
    background: #005bb5;
    }

post comments edit custorm css

結果

comments欄をCSSで整える
CSSで整えたcomments欄
Post Comments の CSS

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

関連コンテンツ

最近の投稿

Post Comments の CSS