現状
このようになってしまい、理想は後ろの背景のなかに擬似要素を持っていきたいと思っています。
コード
.tag_container_sp .key_tag_contanier_sp button.key_tag_all_sp data-type='keywords' すべてのキーワードから探す .key_tag_contanier_sp button.key_tag_all_sp data-type='sectors' すべての業界から探す
@media screen and (max-width:1024px) { .tag_container_sp { display: flex; justify-content: space-around; } } @media screen and (max-width:1024px) { .key_tag_contanier_sp { display: block; margin-bottom: 18px; background: rgba(240,215,185,0.5); border-radius: 30px; box-shadow: 0px 8px 5px -5px rgba(0,0,0,0.5) } } @media screen and (max-width:1024px) { .key_tag_all_sp { display: block; position: relative; display: flex; justify-content: center; color: #333; margin: 0 auto; padding: 16px 0; font-size: 14px; font-weight: bold; } } .key_tag_all_sp::before, .key_tag_all_sp::after { content: ''; position: absolute; top: 50%; display: inline-block; width: 35px; height: 1px; background-color: black; } .key_tag_all_sp::before { left: -45px; } .key_tag_all_sp::after { right: -45px; }
どなたかお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/06/30 04:19