タグ

box-sizingに関するbridge-dwのブックマーク (2)

  • Create the Illusion of Stacked Elements with CSS3 Pseudo-Elements - Inspect Element

    Create the Illusion of Stacked Elements with CSS3 Pseudo-Elements 11th April, 2012 Tom Kenny Tutorials By now, hopefully you’re familiar with the use of the :before and :after pseudo-elements in order to do some interesting effects with CSS. Here I’m going to show you how you can create a simple ‘stacked’ look to some images. Demo Download CSS3 Stacks Step 1 The HTML <div class="stack"> <img src="

  • box-sizing-CSS3リファレンス

    box-sizingプロパティは、ボックスサイズの算出方法を指定する際に使用します。 値にcontent-boxを指定すると、 widthとheightで指定する幅と高さが内容領域に対して適用されます。 幅と高さにはパディングとボーダーは含まれません。 これはCSS2.1の仕様通りの解釈で、DOCTYPEスイッチの標準モードのような表示になります。 値にborder-boxを指定すると、widthとheightで指定する幅と高さがボーダーボックスに対して適用されます。 内容領域にパディングとボーダーを含んだ範囲に対して幅と高さが適用されるため、 パディングとボーダーの分だけボックスサイズが小さくなります。 DOCTYPEスイッチの互換モードのような表示になります。 ■値 content-box パディングとボーダーを幅と高さに含めない(初期値) border-box パディングとボーダーを

  • 1