2011-11-25 61 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