我想把我的標誌浮在標題的左邊,但它根本不會浮動到左邊。我真的很感激,如果有人能指出我的錯誤,因爲我是新來的CSS。徽標不會在標題中左移嗎?
這是我的網站,如果你想看到我的問題現場:http://cashski.com/
這裏是我的HTML代碼:
<div id="navigation">
<div class="center_navigation">
<a href="contact.php">Contact</a>
<a href="buy-instagram-followers.php">Instagram Followers</a>
<a href="buy-instagram-photo-likes.php">Instagram Photo Likes</a>
<a href="index.php"><img src="img/logo.png" /></a>
</div>
</div>
這裏是我的CSS代碼:
body {
padding: 0px;
margin: 0px;
font-family: Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif;
}
#navigation{
width: 100%;
height: 50px;
margin: 0px auto;
position: relative;
background-color: #2d5b89;
border-bottom: 1px solid #244a75;
}
.center_navigation {
width: 960px;
height: 50px;
margin:0px auto;
font-size: 16px;
}
.center_navigation a {
padding: 10px 0 10px 30px;
float: right;
margin-top: 4px;
color: #babcc5;
text-decoration: none;
}
.center_navigation a:hover {
color: white;
}
.center_navigation a img {
float: left;
}
這是你的問題:'.center_navigation一個{浮動:權; }' – melancia