Upgrade to Pro — share decks privately, control downloads, hide ads and more …

かるくCalc()

 かるくCalc()

namikuguri

July 24, 2016
Tweet

More Decks by namikuguri

Other Decks in Technology

Transcript

  1. .container { width: 800px; } .container > .banner { width:

    calc(100% - 80px); /* 720px */ … }
  2. .demo01-content { overflow: auto; height: calc(100vh - 3em); /* <-

    */ … } .demo01-footer { height: 3em; … } Մม͢Δཁૉ ݻఆ͞Εͨཁૉᶃ %FNP
  3. Մม͢Δཁૉ ݻఆ͞Εͨཁૉᶄ .demo02-content-main { float: left; width: calc((100% - 10em)

    - 1em); /* <- */ } .demo02-content-sidebar { float: right; width: 10em; } %FNP