Section - User Content
Notifications
Why I can't center this? I already use margin:0 auto;
Article - Left Content
User Menus
Shout to the world
Shout to the world: |
if(isset($_POST['share'])){
}
?>
Aside - Right Content
这里是我的CSS代码
/*user content styles*/
/*section styles*/
section#usercontent {
width:600px;
background-image:url('../img/content.png');
font-size:13px;
color:#323232;
}
section#usercontent h1 {
visibility:hidden;
position:absolute;
}
/*clear floats*/
section#usercontent div#clearfloats {
clear:both;
}
section#usercontent article#notifications {
width:500px;
height:20px;
margin:0 auto;
}
/*article styles*/
section#usercontent article {
width:220px;
float:left;
margin-left:10px;
}
section#usercontent article section#menuform {
border:1px solid black;
height:50px;
}
section#usercontent article section#shareform {
border:1px solid black;
}
section#usercontent article section#shareform table {
margin:0 auto;
margin-bottom:8px;
margin-top:8px;
}
section#usercontent article section#shareform table td {
padding:2px;
}
section#usercontent article section#shareform input#btn_share {
border:1px solid #E0BE47;
border-radius:8px;
width:58px;height:20px;
background-color:#FAF5CE;
cursor:pointer;
font-size:12px;
color:#323232;
float:right;
}
section#usercontent textarea {
height:55px;
}
/*aside styles*/
section#usercontent aside {
width:340px;
float:right;
margin-right:10px;
}
section#usercontent aside, section#usercontent article {
margin-top:10px;
margin-bottom:10px;
border:1px solid #E0BE47;
border-radius:8px;
}
输出
我得到了这方面的节#usercontent文章#通知我不是问题知道如何让它居中我已经使用margin:0 auto;需要解决这个问题的建议,谢谢!
2012-08-26
Sui Go