WordPressでホームページをつくるにあたり、再びわからないことがでてきた為、質問させていただきます。
ホーム画面のとき一番上についたメインサイドバーを、下へのスクロールと同時に一緒についてくる仕様にしたいのです。
この仕様の変更は、style.css編集のみででできるものなのでしょうか。
したに、メインサイドバーのstyle.cssに書いてあるコードを貼りますので、お詳しい方、どのように変更すればよいかご指摘の程宜しくお願いいたします。
@media all and (min-width: 56.25em) { .main-sidebar { -webkit-transform: translateZ(0); transform: translateZ(0); position: absolute; z-index: 9; top: 0; left: 0; min-height: 100%; min-height: calc(100% - 48px); width: 17.5%; padding: 0 2.7778%; } .main-sidebar.fixed-bottom { position: fixed; top: auto; bottom: 0; z-index: 999; } .main-sidebar.fixed-top { position: fixed; top: 0; bottom: auto; z-index: 999; } .main-sidebar.fixed { position: fixed; top: 0; z-index: 999; } } .tagline { text-align:center; color: #666666; margin-left: auto; margin-right: auto;
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/30 13:47