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