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
ie7のCSSバグ対応-リストタグと、フロートで横に並べたテキストリンクが勝手に改行されるのを防ぐ方法 | 社内SEのウェブ制作

2011.11.14xoopsズープス

ie7のCSSバグ対応-リストタグと、フロートで横に並べたテキストリンクが勝手に改行されるのを防ぐ方法

 

IE7で、フロートで横に並べたリンクテキストの最後尾(一番右側)のみ勝手に改行されて、縦に伸びてしまうバグの対処法です。

フロートをかけるテキストリンクに width を指定すれば、改善はされるのですが、
長いテキスト、短いテキストがあるため、幅を指定したくない。

そんな時は、アンカータグへ下記のCSSを追加します。

a{
  white-space:nowrap;
}

このカテゴリの人気記事



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

トラックバック

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

コメントの投稿

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

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