I have been working with some of the gradient features in css and have created a design with these features but im a little lost on how to have a set width container to contain contents. any advice or help would be greatly appreciated.
here is the html side of things.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" media="all" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/style.css"/>
</head>
<body>
<div id = "container">
<div id = "container_1">
<div id = "container_1_inner_container_1">
<div class = "logo"><a href="#"><img src="img/logo.png" /></a></div>
</div>
</div>
<div id = "container_2"></div>
<div id = "container_3"></div>
<div id = "container_4"></div>
</div>
</body>
</html>
and the stylesheet. ( i do use eric myers reset.css but not shown here)
@charset "utf-8";
/* CSS Document */
body{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
color: #000;
}
#container{
background: #fbfbfb;
width: auto;
}
#container_1{
background: #413231; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#584443', endColorstr='#413231'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#584443), to(#413231)); /* for webkit browsers */
background: -moz-linear-gradient(top, #584443, #413231); /* for firefox 3.6+ */
height: 110px;
margin: 0 auto;
}
#container_2{
background: #413231; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#584443', endColorstr='#413231'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#584443), to(#413231)); /* for webkit browsers */
background: -moz-linear-gradient(top, #584443, #413231); /* for firefox 3.6+ */
border-top: #654e4e 1px solid;
height: 75px;
}
#container_3{
background: #413231; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8f8f7', endColorstr='#ededed'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f7), to(#ededed)); /* for webkit browsers */
background: -moz-linear-gradient(top, #f8f8f7, #ededed); /* for firefox 3.6+ */
border-top: #654e4e 1px solid;
height: 380px;
border-bottom: #d5d5d5 1px solid;
}
#container_4{
background: #ededed; /* for non-css3 browsers */
height: 65px;
border-top: #fff 1px solid;
border-bottom: #d5d5d5 1px solid;
}
.container_1_inner_container_1{
width: 960px;
}
.logo{
}
Thank for looking at my post and helping.
JGetner