HTML头部logo,html - Logo in the header - Stack Overflow

I'm currently trying to get a logo to appear side by side with my header, I can target the logo background just fine however when I try to change the header color it doesn't allow me to. I have tried changing the float to left right and center, center is the best to me personally. Any idea as to why I can change the header color? I posted the code below.

Title

logo

body {

min-width: 630px;

}

#container {

padding-left: 200px;

padding-right: 190px;

}

#container .column {

position: relative;

float: left;

}

#center {

padding: 10px 20px;

width: 100%;

}

#left {

width: 180px;

padding: 0 10px;

right: 240px;

margin-left: -100%;

}

#right {

width: 130px;

padding: 0 10px;

margin-right: -100%;

}

#footer {

clear: both;

}

* html #left {

left: 150px;

}

#container {

overflow: hidden;

}

#container .column {

padding-bottom: 1001em;

margin-bottom: -1000em;

}

* html body {

overflow: hidden;

}

* html #footer-wrapper {

float: left;

position: relative;

width: 100%;

padding-bottom: 10010px;

margin-bottom: -10000px;

background: #fff;

}

body {

margin: 0;

padding: 0;

font-family:Sans-serif;

line-height: 2.24em;

}

p {

color: #000000

}

nav ul {

list-style-type: none;

margin: 0;

padding: 0;

}

nav ul a {

color: white;

text-decoration: none;

}

#header {

font-size: large;

padding: 0.3em;

background: #000000;

}

#footer {

font-size: large;

padding: 0.3em;

background: #e4e2e2;

}

#left {

background: #d3d2d2;

}

#right {

background: #d3d2d2;

}

#center {

background: #e4e2e2;

}

#container .column {

padding-top: 1em;

}

.header img {

width: 250px;

height: 80px;

float: center;

background: #ffffff;

}

.header h1 {

position: relative;

top: 18px;

left: 10px;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值