タグ

htmlとpositionに関するartztのブックマーク (2)

  • Mastering CSS Coding: Getting Started — Smashing Magazine

    CSS has become the standard for building websites in today’s industry. Whether you are a hardcore developer or designer, you should be familiar with it. CSS is the bridge between programming and design, and any Web professional must have some general knowledge of it. If you are getting your feet wet with CSS, this is the perfect time to fire up your favorite text editor and follow along in this tu

    artzt
    artzt 2010/05/15
  • floatとpositionの使い分け

    てんぽ: floatとpositionの使い分け CSSHTML、FC2ブログのカスタマイズ、共有テンプレートなど CSSで段組をやるには普通floatかpositionを使いますが、どのように使い分けるのか。 これはいろいろと試行錯誤しているうちにわかってくるものなので、「そんなこと知ってる」という人も多いかと思いますが、まとめてみます。 条件としては以下のような感じ。 HTMLの記述順は「(ヘッダ→)記事→サイドバー(→フッタ)」を守る 記事領域とサイドバーの長さはページによって異なる(どちらが長くなるかわからない) サイドバーとフッタの文字が重なる、とかは駄目 floatとpositionの違いは、「floatは下方向に融通が利く」のに対し、「positionは上方向に融通が利く」といえます。 何のことかさっぱりわからないと思いますが、つまりこういうことです。 フロートはソース上で

  • 1