タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

valueに関するthleapのブックマーク (2)

  • CSS には vw, vh, vmin, vmax という単位がある | DevelopersIO

    例として以下の様な HTML 構造があったとします。 <body> <!-- 画像解像度: 100 x 100 (px)--> <img src="images/thumbnail.jpg" /> </body> img { display: inline-block; margin: auto; width: 10vw; } img の幅を 10vw と指定しています。基準となるビューポートの幅を vw で表すと 100vw となります。iPhone 5S のビューポート幅をピクセルで表すと 320px な訳ですが、10vw はその 1/10 ということで32px が img の幅となります。つまり 1vw は 1% と同じ長さになります。もちろんリキッドレイアウトにも対応した動きを持っています。 Demo - viewport lengthを開く(このサンプルはChromeブラウザでの

    CSS には vw, vh, vmin, vmax という単位がある | DevelopersIO
    thleap
    thleap 2014/07/02
    モバイルやタブレットで、サイトの左右に余白を取るのに使えそう
  • Styling with STRINGS

    At this year's CSSConf in Melbourne (AU) I gave a talk called "Styling with STRINGS". The talk is about how we can use Flexbox, currentColor and EMs inside components to quickly style entire Web Apps straight in the browser. In case of tl:dw here some of the main points: Layout When creating mobile "App" layouts, where not the whole page is scrollable, but instead only certain parts. And you have

    Styling with STRINGS
  • 1