我正在建立我的网站,但遇到了一些困难。这是它目前的样子:
http://i1134.photobucket.com/albums/m618/eshellborn/ScreenShot2012-11-28at43250PM.png
而且,当然这就是我希望它看起来的样子:
http://i1134.photobucket.com/albums/m618/eshellborn/ScreenShot2012-11-28at43306PM.png
我已经尝试了很多 div align this 和类似的东西,但似乎没有任何效果。有任何想法吗?下面的代码:
HTML:
<div class="realtor">
<img src="bronson.png" align="left" />
<div class="innerrealtor">
<h3>Bronson Carmichael</h3>
<p class="realtorinfo"> Bronson has been in the industry for thousands of years, with over 12 client expiriences. Join him on your journey to find a home in the Cranbrook area. </p>
</div>
<div class="viewlistings">
<div>View Bronson's Listings</div>
<img src="viewarrow.png" />
</div>
</div>
CSS:
.innerrealtor {
width: 450px;
margin-left: 90px;
margin-top: -3px;
}
.realtor {
padding: 15px;
margin-top: 25px;
background-color: #F9F8E7;
width: 750px;
height: 70px;
border-radius: 5px;
}
.viewlistings {
width: 180px;
height: 50px;
background-color: #018D0E;
border-radius: 4px;
float: right;
text-align: right;
}
.viewlistings div {
padding-top: 3px;
margin-right: 50px;
font-family: 'Sanchez', serif;
color: #ffffff;
font-size: 16px;
font-weight: 100;
}
.viewlistings img {
position: relative;
}