汎用的に使える CSS グリッドレイアウトのサンプルがあれば良いなぁと思い、コンテンツエリアを等分割して、その中の領域をいくつ使うかでクラスを使い分けるサンプルを書いてみました。 – [ CSS ] グリッドレイアウトのサンプルページ ## CSS 部分のサンプルコード .col-3 { width: 940px; margin-bottom: 20px; } .col-3 .box-1 { float: left; width: 300px; padding-right: 20px; } .col-3 .box-2 { float: left; width: 620px; padding-right: 20px; } .end { float: right !important; padding-right: 0px !important; } ## HTML 部分のサンプルコード
by Alessandro Fulciniti In November 2005 I presented on pro.html.it a three-part article on creating CSS layouts using techniques like negative margins, any order columns and in some case opposite floats. The main goal of the article was getting the maximum number of layouts based on the same markup, each with valid CSS and HTML, without hacks nor workaround and a good cross-browser compatibility.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く