Home › Forums › CSS › Center Header with fixed width but has infinite background colored strip › Re: Center Header with fixed width but has infinite background colored strip
December 12, 2011 at 10:44 am
#92524
oceantrain
Member
This is my code:
Call toll free:
1-800-780-8476
@Layout.Title
CSS:
#header {
height:175px;
background:-moz-linear-gradient(top , #0f5979, #000);
background: -webkit-gradient(linear, left top, left bottom, from(#006699), to(#003366));
}
.headerbackgroundbox
{
position:relative;
height:211px;
width:470px;
margin:0;
background:-moz-linear-gradient(top , #99cc33, #81A000);
background:-webkit-gradient(linear, left top, left bottom, from(#99cc33), to(#81A000));
-moz-box-shadow: 1px 1px 1px #757575;
-webkit-box-shadow: 1px 1px 1px #757575;
box-shadow: 1px 1px 1px #757575;
}
.container_12,
{
margin-left: auto;
margin-right: auto;
width: 960px;
}