参考サイト
・http://www.noobcube.com/tutorials/html-css/fixed-header-footer-layout-a-beginners-guide-/
#headerbar { position: fixed; top: 0; left: 0; height: 40px; width: 100%; background-color: #000; } /* コンテンツボックスを中央に配置したい場合 */ #headerbar-inner { width: 950px; margin-left: auto; }
背景色、文字色、高さ、コンテンツボックスの幅は任意で指定。
0 件のコメント:
コメントを投稿