2016/02/08
css
備忘録です。
参考サイト
CSSフレックスボックス(display:flex)の使い方
要素の横並び+複数行ならflex-wrapが便利
ul { display: -webkit-flex; display: flex; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; height: 100px; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-end; justify-content: flex-end; -webkit-align-items: flex-end; align-items: flex-end; height: 100px; }
ul { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; -webkit-flex-direction: column-reverse; flex-direction: column-reverse; }
ul.flx13 { display: -webkit-flex; display: flex; } ul.flx13 li:nth-of-type(3) { -webkit-order: -1; order: -1; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: space-around; justify-content: space-around; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: flex-start; align-items: flex-start; -webkit-flex-direction: column; flex-direction: column; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: space-around; justify-content: space-around; -webkit-align-items: flex-start; align-items: flex-start; -webkit-flex-direction: column; flex-direction: column; height: 200px; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-start; justify-content: flex-start; } ul li:last-of-type { margin-left: auto; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-start; justify-content: flex-start; } ul li:nth-of-type(2) { margin-left: auto; background-color: #ffc; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-start; justify-content: flex-start; -webkit-align-items: flex-start; align-items: flex-start; -webkit-flex-direction: column; flex-direction: column; height: 200px; } ul li:nth-of-type(1) { margin: 0 auto auto 0; } ul li:nth-of-type(2) { margin: auto; } ul li:nth-of-type(3) { margin: auto 0 0 auto; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-start; justify-content: flex-start; } ul li { -webkit-flex-grow: 1; flex-grow: 1; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-start; justify-content: flex-start; } ul li:nth-of-type(2) { -webkit-flex-grow: 1; flex-grow: 1; }
ul { display: -webkit-flex; display: flex; -webkit-justify-content: flex-start; justify-content: flex-start; } ul li:nth-of-type(1) { -webkit-flex-basis: 50px; flex-basis: 50px; } ul li:nth-of-type(2) { -webkit-flex-grow: 1; flex-grow: 1; } ul li:nth-of-type(3) { -webkit-flex-grow: 1; flex-grow: 1; }
flex-wrap: wrap;を指定します。
.example { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
ゼヒトモ内でのプロフィール: ROCKSTREAM, ゼヒトモのホームページ作成・制作サービス, 仕事をお願いしたい依頼者と様々な「プロ」をつなぐサービス
2024/08/20
神社
御朱印
2024/07/06
神社
御朱印
2024/07/06
神社
御朱印
2024/02/09
神社
2024/02/09
神社