2011-11-25 58 views
0

在我使用的主題有這個代碼CSS的一個鏈接,是一個div

<div id="header"> 
<div class="container section header clearfix"> 
<a id="logo" class="logo" rel="home" title="Home" href="/xx/"> 
<img alt="Home" src="http://192.168.1.1/xx/sites/default/files/logo_0.png"> 
</a> 
<div id="user-links" class="clearfix"></div> 
<div id="name-and-slogan"> 
</div> 
<div class="region region-header"> 
</div> 
</div> 
</div> 

我只需要移動徽標到左側位。使用css 請指教;

+3

你有嘗試過什麼嗎?我不打算爲你做。 – Blender

+0

是#header a { top:-50; } – Kevin

+0

好的;沒問題。 thnx – Kevin

回答

0

做了嘗試:

#logo { 
    display: block; 
    width: 100px; 
    height: 100px; 
    margin: 10px; 
    float: left; 
} 
. clearfix { 
    clear: both; 
} 

你需要以您的徽標尺寸爲更換寬度,高度和邊距值。您可以根據自己喜好調整邊距。

+0

啊工作。 thnx先生 – Kevin