Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
css を 分割して 記述する 決まり事 | 社内SEのウェブ制作

2011.03.28xoopsズープス

css を 分割して 記述する 決まり事

●CSSは全部で5つ

 default.css・・・リセット系、フォント、リンクなど

 import.css・・・インポート用

 layput.css・・・段組み

 module.css・・・各モジュールごと

 common.css・・・全ページ共通のパーツなど

 

 

  • reset.css
    • ブロックレベル要素のmargin,paddingなど各ブラウザーの差違をリセット。
  • font.css
    • 全体的なフォントサイズの調整など。役割的にはreset.cssやcommon.cssに含めてもよいが、YUIなど使ってる場合は独立させておく方が管理は楽かも。
  • common.css
    • サイト全体のレイアウトや要素の共通設定。
  • style.css
    • 各ページ独自のスタイル。
  • hack.css
    • IE向けのハックなど。

このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (20297)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/173

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ