私はまだ CSS とプロパティの組み合わせにかなり慣れていないため、望ましくないギャップが発生するという問題が発生しています。プロパティをいじって、YouTube のビデオをいくつか見た後も、まだ問題が発生しています。間隔は、ウェルカム タイルの下部からサンプル タイトルまで 10 ピクセルにする必要があります。
Windows Metro に似たタイルを作成しようとしています。アンカー ID を作成し、ID の CSS がタイルを作成します。
この画像は問題を示しています。
.header {
background:url(../images/header2.png) no-repeat;
width:384px;
height:69px;
}
#content {
position:relative;
width:384px;
height:646px;
margin-top:30px;
overflow:hidden;
border:none;
background-color:#CCC;
}
.welcomeTile {
background:url(../images/welcomeTile.jpg) no-repeat;
float:left;
width:180px;
height:280px;
margin-left:7px;
}
.aboutTile{
background:url(../images/aboutTile.jpg) no-repeat;
float:left;
width:180px;
height:105px;
margin-left:10px;
}
.galleryTile{
background:url(../images/galleryTile.jpg) no-repeat;
float:left;
width:180px;
height:105px;
margin-left:10px;
margin-top:10px;
}
.examplesTile{
background:url(../images/examplesTile.jpg) no-repeat;
float:left;
width:180px;
height:105px;
margin-left:7px;
clear:left;
}
.contactTile{
background:url(../images/contactTile.jpg) no-repeat;
float:left;
width:180px;
height:105px;
margin-top:10px;
margin-left:7px;
clear:left;
}