Cổng vào tri thức => Tin học => Topic started by: saos@ngmo on 10/02/07, 11:18 Return to Full Version
Title: tiny tut to center 2 divs in one div
Post by: saos@ngmo on 10/02/07, 11:18
Post by: saos@ngmo on 10/02/07, 11:18
#content {
width: 760px;
background: #fff url(../../images/branding/contentbg.gif) repeat-y;
margin: 0 auto;
text-align: center;
overflow: auto;
zoom: 1;
}
#content-primary {
float: left;
width: 511px;
height: 200px;
background-color: #000066;
margin-left: 14px;
display: inline;
}
#content-secondary {
float: left;
width: 221px;
height: 200px;
background-color:#33FF99;
margin-right: 8px;
display: inline;
}
width: 760px;
background: #fff url(../../images/branding/contentbg.gif) repeat-y;
margin: 0 auto;
text-align: center;
overflow: auto;
zoom: 1;
}
#content-primary {
float: left;
width: 511px;
height: 200px;
background-color: #000066;
margin-left: 14px;
display: inline;
}
#content-secondary {
float: left;
width: 221px;
height: 200px;
background-color:#33FF99;
margin-right: 8px;
display: inline;
}