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: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 117

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 168

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 186

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SiteClose.class.php on line 54

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 65

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 73

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
position:absoluteで、h1タグを配置しましょう。 | 社内SEのウェブ制作

2012.01.28seo対策

position:absoluteで、h1タグを配置しましょう。

いまさらジローですが、position:absoluteの使い方です。
SEOの重要性が重視される昨今、
ページの先頭にh1タグで、キーワードを置く手法をとっているサイトを
多く見ます。ベビーマッサージ教室Peaceぴーす も同じく、ヘッダーに
h1で「ベビーマッサージ」のキーワードを配置しています。

その配置方法は position:absolute で配置するのですが、
起点となる点がないと、ブラウザの幅を変更することで、場所が移動してしまいます。

その起点とする点を設定する方法ですが、
h1よりも前のCSS要素に、position:relative を指定します。

するとh1に指定した、top や left は
relativeを指定した要素からの距離となります。
 


このカテゴリの人気記事



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

トラックバック

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

コメントの投稿

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

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