サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
medium.com/@peedutuisk
• Vertical padding is relative to element’s width not heightSo padding-top: 50% does not add 50% of the original height of the element as padding, but 50% of the width of the parent element: Knowing this we can easily make responsive elements that keep their height/width ratio: .square { width: 100%; height: 0; padding-bottom: 100%; } • Margins overlap, but only sometimesSo space between the follo
このページを最初にブックマークしてみませんか?
『medium.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く