メモ用サブブログ

子曰わく學びて時にこれを習う。

CSS

CSS 背景を複数指定した時はsizeもカンマで複数指定できる

CSS

#content { background: url(/css/theme/patchwork/images/border@2x.png) repeat-x top, /* イ */ url(/css/theme/patchwork/images/border@2x.png) repeat-x bottom, /* イ */ url(/css/theme/patchwork/images/content@2x.png); /* ロ */ background-size…

ページの内容が短くてもウィンドウ下部にフッターを固定する方法

CSS

ページの内容が短い時に、フッターまで上のほうにあがってしまってみっともないことがある。それの回避方法。 html { position: relative; min-height: 100%; } #footer { position: absolute; bottom: 0; width: 100%; /* Set the fixed height of the foot…

CSS attr(hoge)

CSS

CSSってattr()なんていう関数なんてあったんだ… これ知ってればCSSだけでかなり表現の幅が広がりそう これはcontentの時以外でも使えるんだろうか HTML <a href="#"><span data-title="Text Link">Text Link</span></a> CSS a span:after { content: attr(data-title); } ネタ元 コピペでできる!CSS3の素敵効果で…