現在ポートフォリオを作成しているのですが、jumbotronの中のh1タグにbootstrapが効かず、レスポンシブ対応にできません。
本当は「プロ野球掲示板」と表示されて欲しいのですが、「プロ野球掲」で途切れてしまっています。
html
1<div class="container"> 2 <div class="jumbotron jumbotron-fluid"> 3 <h1 class="npb-blog-title text-white p-3 badge badge-primary">プロ野球掲示板</h1> 4 <p class="lead">好きなプロ野球の話題について語り会おう!!</p> 5 <%= search_form_for @q, class: "form-inline my-2 my-lg-0 d-block mx-auto" do |f| %> 6 <%= f.search_field :title_cont, class: "form-control mr-sm-2", placeholder: "検索する" %> 7 <%= f.submit "検索", class: "btn btn-success my-2 my-sm-0" %> 8 <% end %> 9 </div> 10</div> 11<div class="container"> 12 <%= render partial: "tweet", locals: { tweets: @tweets } %> 13</div>
SCSS
1.jumbotron { 2 width: 100%; 3 height: 400px; 4 background-image: url("https://www.hanshin.co.jp/koshien/img/top/vision/main07.jpg"); 5 text-align: center; 6 .npb-blog-title { 7 font-weight: bold; 8 font-size: 100px; 9 color: black; 10 } 11 .lead { 12 font-weight: bold; 13 font-size: 20px; 14 color: black; 15 } 16} 17.article-all { 18 text-align: center; 19 margin-top: 30px; 20 font-size: 30px; 21 font-weight: bold; 22} 23.row { 24 justify-content: space-between; 25} 26.card-img-top { 27 height: 300px; 28} 29.fa-heart { 30 color: #ff1493; 31} 32
色々ネットで調べて見たのですが、解決策が見つかりませんでした。
どうかご教授お願い致します。
回答1件
あなたの回答
tips
プレビュー