タグ

2010年9月24日のブックマーク (3件)

  • New CSS Sticky Footer - 2010 - HTML for Bottom of Page Footer

    CSS Sticky Footer Layout It Sticks to the Bottom of the Page! See that footer, way down there? It's stuck to the bottom of the page even when thin on content. Otherwise it would be floating halfway up the page. Use the code and assets on this website like new UK gambling sites do and your site will be looking perfect in next to no time! Cross Browser Support for Sticky Footer Code This sticky foot

    hashimoya
    hashimoya 2010/09/24
    CSSでfooterウィンドウ下部固定。固定したいfooterの前にheaderとcontentsを内包したdivがないと高さ算出がうまくいかなくってよ…orz
  • footerをウィンドウ下部に固定する『footerFixed.js』

    footerをウィンドウ下部に固定する『footerFixed.js』 footer部分を画面下部に固定するためのjsライブラリ『footerFixed.js』を作成しました。 フッターをコンテンツの内容量にかかわらずwindow下部に表示させるためのjsライブラリです。 サンプル 設置方法は head要素なのでfooterFixed.jsを読み込みます。 <script type="text/javascript" src="./footerFixed.js"></script> ウィンドウ下部に固定したい要素にid属性「footer」を付けます。 これでその要素をウインドウの下部に表示させることが可能です。 (ウインドウの下部というのがわかりにくいと思うのですが、内容量がウィンドウサイズを超える場合は通常通り、内容量がウィンドウサイズより小さい場合はウィンドウの下部に配置という意味です

    footerをウィンドウ下部に固定する『footerFixed.js』
    hashimoya
    hashimoya 2010/09/24
    JSで解決。CSSならCSS Sticky Footerが有名だけども、構造上きびしい時とかもあるのでいろいろ検討したい。
  • div等に指定した背景をページの下まで伸ばしたい | Takazudo Clipping*

    背景を下までずずーっと伸ばしたい時は、bodyにbackground-imageを指定すればよいですが、div等に指定した背景やborderをページの下まで伸ばしたい時は、以下のようにします。 <body> <div id="Container">高さ100%</div> </body> *{ margin:0;padding:0; } html{ height:100%; } body{ height:100%; } #Container{ height:100%; min-height:100%; width:80%; background:Khaki; border-right:1px solid red; } body > #Container{ height:auto; } 下まで背景伸びたHTML完成サンプル 以下、なぜこれで実現できるのかの解説と疑問点。とても長い。 Step

    hashimoya
    hashimoya 2010/09/24
    フッター下部固定とか背景下までとかbodyまわりのheightのおはなし。なんでhtmlにまで高さ指定やねんってとこまで突っ込んでる