-2
私はウェブサイトの設計と開発を初心者にも理解しています。初心者として私は古いBBCのニュースサイトであるサイトを作成しています。次のアーカイブリンクからhttp://web.archive.org/web/20140402131524/http://www.bbc.co.uk/news/uk 私は腕時計に叱られています/バックグラウンドカラーのオレンジはビデオの下にリンクしています。私のコード 以下は適切な場所で背景色が得られない
body {
margin: 0;
line-height: 15px;
}
.watch {
position: relative;
top: 50px;
right: 50px;
color: #505050;
line-height: 24px;
background-color: #eeeeee;
float: right;
width: 336px;
}
#videoa {
float: left;
background-color: #d1700e;
position: relative;
top: -84px;
left: 25px;
}
#videoa a {
float: left;
color: white;
position: relative;
top: 2px;
left: 5px;
}
.watchhead {
font-size: 24px;
font-weight: bolder;
position: relative;
top: 10px;
left: 8px;
}
#WatchListenlogo {
float: right;
position: relative;
top: 22px;
right: 10px;
}
#rightarrow {
float: left;
border-right: solid white 1px;
position: relative;
top: 40px;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
<div class="watch">
<img src="http://s9.tinypic.com/2hd45fp_th.jpg" id="WatchListenlogo" />
<span class="watchhead">Watch/Listen</span>
<img src="http://s9.tinypic.com/35c03yr_th.jpg" id="rightarrow" />
<div id="videoa">
<img src="http://s9.tinypic.com/j64ufl_th.jpg" />
<a href="">Titanic letter could fetch £ 100,000</a>
</div>
</div>
ポジショニングは、非常に**ウェブページをレイアウトする方法が貧弱です。これは非常に柔軟性がなく、より優れた応答性の高いオプションがあります。チェックアウト[** LearnLayout.com **](http://learnlayout.com/) –