このコードがわかりません。
これが私のウェブサイトです:http://claireisabelwebb.com/
左側のメインナビゲーションの周りにラッパーを作成し、右側に写真とテキストを含めました。テキスト/写真のコンテナに2つの「ボックス」があります。そのコードは次のとおりです。
/* Wrapper for Text and Photo on Home Page */
.wrapper_text_photo{
display:block;
float: left;
background: rgba(0,0,255, .8);
width:800px;
height: 700px;
padding: 20px;
margin-top:20px;
margin-left:10px;
}
/* Photo on Home Page */
.photo_home {
float: left;
margin-right:10px;
}
/* Text on Home Page */
.home_text{
display:block;
background: rgba(255,255,255,.75);
width:800px;
height: 400px;
}
これがhtmlです:
<div class="wrapper_text_photo">
<!-- Picture of Me __________________________________________-->
<img class="photo_home" src="images/Home/claire-ed.jpg" alt="claire isabel webb" height="200px">
<!-- Text ___________________________________________________-->
<div class="home_text">
<p>I graduated in 2010 from Vassar College with departmental honors in astronomy. I also minored in philosophy and discovered a late interest in architecture and art history. ETC
<br><br>
Email me at claire.isabel.webb@gmail.com.
<br>
</p>
</div>
</div>
テキストボックスを画像に合わせたいのですが、パディングとマージンをいくら操作しても、正しく表示されないようです。
ありがとう !