bluediary

- プログラミングと中小企業診断士の勉強について

2022.02.03

2022.02.13

snowmonkey

【Snow Monkey】セクションブロックを使って、コンテンツ幅を調節する方法

やりたいこと

  • セクションブロックを使って、最大コンテンツ幅を1000pxにしたい
  • 「コンテンツの幅をスリム幅にする」を選択した時は、最大コンテンツ幅を800pxにする

方法

  • ①セクションブロックのクラスのmax-width:1000px;を当てる
  • ②「コンテンツの幅をスリム幅にする」を選択した時のセクションブロックのクラスにmax-width:800px;を当てる

.wp-block-snow-monkey-blocks-section.smb-section.smb-section–fit .smb-section__inner .c-container .smb-section__contents-wrapper{
max-width: 1000px;
}

.wp-block-snow-monkey-blocks-section.smb-section.smb-section–fit .smb-section__inner .c-container .smb-section__contents-wrapper.u-slim-width{
max-width: 800px !important
;}

コアラ

Soichiro

Web制作会社でデザインやコーディングを担当しています。趣味は筋トレ、お絵描き、旅行です。

プロフィール詳細へ

Archive