html - 左上角的图像不单独与菜单

标签 html css

在我的页面中,左上角的图像 logo2.jpg 向右移动,我希望它位于其下方菜单的同一行。我该怎么做?

页面在这里,如果有帮助的话:

http://www.dilyurdu.com

#logo {
margin:0 auto; width: 975px; position:relative;
}
#top {
position:relative; top:0px; left:0px; width:100%; height:95px;background:url("vocab_dosyalar/back2.jpg") top repeat-x;
}
#logoicerik {
position:absolute; top:2px; 
}
#logoicerik2 {
position:absolute; top:2px; left:357px;
}

    <div id="top">
         <div id="logo" >   
              <div id="logoicerik"><img src="vocab_dosyalar/logo2.jpg" alt="easylang" style="border:0px;"/></div>
              <div id="logoicerik2"><img src="vocab_dosyalar/slogan.jpg" alt="the easiest way to learn english"/></div>
              <div class="header-info" style=" margin-right:1px; margin-top:15px" ></div>
         </div>
    </div>

最佳答案

您的 container 类有 width: 960px 但您的 wraper(sic) 类有 width: 990px​​

所以你需要确保它们都具有相同的宽度:我建议通过更改 container

的宽度使它们都为 990px
.container {
  WIDTH: 990px;
}

关于html - 左上角的图像不单独与菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9967315/

相关文章:

javascript - iframe 不适用于 safari/firefox

html - 是否可以在 Twitter Bootstrap 中创建一个没有左侧边栏的可变宽度页面?

html - SVG 坐标偏移

javascript - 如何在 Switchery 插件中将 box-shadow 添加到 jackColor

javascript - C# Ext.net javascript html : Create a small colored box in label field

javascript - 预加载较大图像的有效方法

javascript - jQuery - 从 json 对象中获取选定的值

html - 如何使用带有线条和圆圈的 Bootstrap 创建时间轴轮播

css - 视频作为背景

HTML/CSS : Is it possible to make a table that can have its column selected?