0
我剛剛開始智慧html5和CSS。我似乎無法得到我的第一個標題下的頂部標誌和中間圖像居中和標題下。基本上我想知道如何按順序排列元素。間距和居中元素
這裏是我的截圖和代碼如下:
body {
text-align: center;
background-color: white;
color: black;
}
#logo {
align: left;
}
#tagline {
text-align: left;
color: black;
font-family: arial;
}
#car {
align: center;
}
table {
text-align: center;
}
#p01 {
color: black;
font-size: 24;
line-height: 10%
}
#p02 {
color: blue;
font-size: 24;
line-height: 25px;
}
#h102 {
color: green;
font-family: arial;
}
<div id="logo">
<img src="auto.png" alt="autologo" width="200" align="left" />
</div>
<div id="tagline">
<h3><em>Explore the world's supercars</em>
<h3>
</div>
<div id="car">
<img src="aventador-coupe-facebook-og.jpg" alt="lambo" width="700" border="5px" />
</div>
<p id="p01">Here is a picture of the Lamborghini Aventador</p>
<p id="p02">The Lamborghini flagship model</p>
<table cellspacing="0" cellpadding="4" border="4" align="center">
<tr>
<td>aventador</td>
<td>huracan</td>
<td>centenario</td>
</tr>
<tr>
<td>asterion</td>
<td>esoque</td>
<td>murcielago</td>
</tr>
<tr>
<td>gallardo</td>
<td>diablo</td>
<td>countach</td>
</tr>
</table>
<h1 id="h102">FIND YOUR LUXURY CAR TODAY</h1>