WordPressの追加CSSでhタグを変更したいと思いサルワカのサイトからcssをコピーしたのですがデザインが適応されていないようでした。
サイトにあるCSSをコピーすれば下記のようなものを実現できるとあったのですが、ロケットの部分がうまく表示されませんでした。
変更したところはh1だったところをh4にしただけです。h4では使えないのでしょうか?
CSS
1h4 { 2position: relative; 3background: #ffd98a; 4padding: 2px 5px 2px 25px; 5font-size: 20px; 6color: #474747; 7border-radius: 0 10px 10px 0; 8} 9 10h4:before { 11font-family: "Font Awesome 5 Free"; 12content: "\f135"; 13display: inline-block; 14line-height: 40px; 15position: absolute; 16padding: 0em; 17color: white; 18background: #ffa337; 19font-weight: normal; 20width: 40px; 21text-align: center; 22height: 40px; 23line-height: 40px; 24left: -1.35em; 25top: 50%; 26-moz-transform: translateY(-50%); 27-webkit-transform: translateY(-50%); 28-ms-transform: translateY(-50%); 29transform: translateY(-50%); 30border: solid 3px white; 31border-radius: 50%; 32}
css自体は読み込まれてますか?
回答1件
あなたの回答
tips
プレビュー