パイプ内のテキストを中央に配置せずに yahoo パイプをページの中央に配置するために、このサイトですべてを試しましたが、何も機能しません。私は本当にこれに2番目の目を必要としています! ここに私が持っているコードがあります:
CSS:
#pipe_container{
width: 850px;
height: 350px;
position: relative;
margin-left: auto;
margin-right: auto;
background-color: #fff;
text-align: center;
}
#event_pipe {
position: relative;
text-align:left;
width:100%px;
height:350px;
background-color:#888;
padding:0px;
margin: 0px 20px 20px 20px;
}
HTML:
<div id="pipe_container">
<div id="event_pipe">
<script src="http://l.yimg.com/a/i/us/pps/listbadge_1.6.js">
{
"pipe_id":"2a44070dcf6974aea04ad155a76caef4",
"_btype":"list",
"width":"80%",
"height":"350px"
}
</script>
</div>
</div>
「event_pipe」コードでセンタリング属性を使用することはできません。これは、テキストを含むすべてをセンタリングするためです。テキストを左側に残してほしい。