レスポンシブにコンテンツ全体の幅を変えたくて作りました。
See the Pen Scalable container by Tsuneaki Hasekura (@tsunet111) on CodePen.
- ウインドウの幅をみて、それに対応してコンテンツのスケールを変える
- スケールを変えると、余白ができてしまうので、そのぶんだけマイナスのマージンを設定する
といったことをやっています。
Go to list of users who liked
More than 3 years have passed since last update.
レスポンシブにコンテンツ全体の幅を変えたくて作りました。
See the Pen Scalable container by Tsuneaki Hasekura (@tsunet111) on CodePen.
といったことをやっています。
Register as a new user and use Qiita more conveniently
Go to list of users who liked