我正在使用bombax wordpress主題。由於描述沒有顯示出來,當我使用頭像的圖像時,我決定調整html/css以在頭部中間顯示網站標語。如何使用css在中間對齊此標頭
這是網站: http://www.noticiasnaturais.com/
這是我想中心的圖像(無需左邊的標誌重疊,與站點名稱葉): http://www.noticiasnaturais.com/wp-includes/images/descricao_site.png
這是原來的主題HTML :
<div id="headerwrap">
<div class="clear"></div>
<a href="http://www.noticiasnaturais.com/" title="Notícias Naturais" style="color: rgb(51, 51, 68);">
<img src="http://www.noticiasnaturais.com/wp-includes/images/logoHeader.png" alt="Notícias Naturais" title="Notícias Naturais">
</a>
</div>
我然後試圖改變如下,加入ADIV圍繞HREF到它漂浮到左邊,添加一個外層div漂浮到右(填充裏最高空間)和第三個div在中間對齊。
<div id="headerwrap">
<div class="clear"></div>
<div style="float:left"><a href="http://www.noticiasnaturais.com/" title="Notícias Naturais" style="color: rgb(51, 51, 68);">
<img src="http://www.noticiasnaturais.com/wp-includes/images/imagefile" alt="Notícias Naturais" title="Notícias Naturais">
</a></div>
<div style="float:left;height: 100%";align=center><img src="http://www.noticiasnaturais.com/wp-includes/images/descricao_site.png">
</div>
</div>
編輯:只是澄清問題,我需要與文本的圖像在徽標的右側。此時我直接在背景圖像上顯示,但這不適用於所有屏幕分辨率。沒有任何建議(迄今爲止)能夠做到。
請檢查更改,我希望我得到所有關閉div權。 –