#site-title
テキストwith a fixed-size imageを置き換えることはできますが、問題はありません。#site-titleをRESIZABLEイメージで置き換えるにはどうすればよいですか?
今は、Twenty ElevenのWordPresseのヘッダーのように、ブラウザのサイズに基づいて自動的にサイズを変更したいと考えています。
Firebugのは、そのための責任CSSがあることを私に伝えます:
#branding img {
height: auto;
margin-bottom: -7px;
width: 100%;
}
しかし、私は、サイトのタイトルにこれをコピーしてみてください:
#site-title {
text-indent: -9999px;
width: 100%; /* 980px; width of the image file. */
height: auto; /* 128px; height of the image file. */
margin: 0px 0 0 0;
padding: 0em 0 0;
background: url(images/header.png) white no-repeat;
font-size: 1px;
line-height: 1px;
text-decoration: none;
}
これは実際に動作しません。サイトを - タイトル画像は同じ元のサイズのままです。
新しいWordPressには「サイズ変更可能なマジック」機能を作成するために何か必要なことはありますか?
これはCSSの質問であり、ワードプレスの質問ではありません。 –
@ m0r7if3r本当ですか?あなたが私のポストから見ることができるように、私は[CSSメソッド](http://allaboutbasic.com/2011/06/15/wordpress-com-theme-twenty-eleven-css-style-sheet-modification-change site-titledescriptionpost-titlecommentsmenussidebar-and-more /)がありますが、それはWordPress固有の追加トリックが必要になると思われます。おそらく 'functions.php'の中の何か? – ef2011
それはちょうど[CSS3メディアクエリ](http://webdesignerwall.com/tutorials/responsive-design-with-css3-media-queries)ですが、wordpressは何もしていません。 twentyelevenのstyle.cssの終わりを見ると、それが見えます。 –