ブラウザウィンドウのサイズを変更すると、画像は(本来あるべきように)縮小しますが、div内で左に縮小します。収縮する方向を決定するものは何ですか?選択できますか?
例はここにあります:http://cdpn.io/FdIKv (ページを縮小して表示)
オーバーラップ/オーバーラップする代わりにテキストを縮小する方法のボーナス。
ありがとう!
編集:お詫び、ここにコードがあります:
<style type="text/css">
#logo-div {
max-width: 24%;
width: 24%;
height: auto;
clear: both;
z-index: 0;
float: right;
overflow: hidden;
}
#site-logo {
max-width: 100%;
display : block;
margin : 0 auto;
}
#site-title a {
color: #CB2027;
font-size: 2.7em;
margin-right: auto;
position: relative;
overflow: hidden;
}
#site-title {
margin-right: auto;
width: 80%;
position: relative;
overflow: hidden;
}
#site-description {
color: #000000;
font-size: 2.340em;
position: relative;
overflow: hidden;
width: 76%;
}
#branding hgroup {
max-width: 60%;
float: left;
width: 60%;
}
</style>
<header id="branding" role="banner">
<!--<div id="logo-and-hgroup">-->
<div id="logo-div"><img id="site-logo" src="http://farm6.staticflickr.com/5016/5421726832_eb5c0e25fc_m.jpg" alt="" /> </div>
<hgroup>
<h1 id="site-title">
<a href="http://google.com/" title="Thisisone ATest" rel="home">Thisisone ATest</a>
</h1>
<h2 id="site-description">This is where the description will go</h2>
</hgroup>