インラインブロックを使用して2つのdivを整列させようとしていますが、私はこれに奇妙な問題があります。私はfloatを試してみましたが、同じ問題がありました。ここで2つのCSS要素を隣り合わせに整える
彼らはそれぞれ、他の隣にする必要がありますが、それらがずれています。ここで
は私のCSSです!私は運:(おかげで、多くの異なるものを試してきたように、誰もがこれで私を助けることができるかどうか疑問に思う私はjsfiddleするためにいくつかのサンプルコードをアップロード#content .articlehs h3 {
margin-top: 0px;
font-family: 'New Rocker', cursive;
background: url("../img/article_head.png") repeat-x;
border: 2px solid background: url("../img/asbg.png") repeat-x;
padding: 10px 20px;
}
#content .articlehs p {
background: url("../img/asbg.png") repeat-x;
padding: 10px 20px 20px;
}
#content .articlehs {
display: inline-block;
background: url("../img/asbg.png") repeat-x;
width: 50%;
margin-left: 10%;
margin-top: 10px;
}
#content .articleSidebar h3 {
margin-top: 0px;
font-family: 'New Rocker', cursive;
background: url("../img/article_head.png") repeat-x;
border: 2px solid background: url("../img/asbg.png") repeat-x;
padding: 10px 20px;
}
#content .articleSidebar p {
background: url("../img/asbg.png") repeat-x;
padding: 10px 20px 20px;
}
#content .articleSidebar {
display: inline-block;
background: url("../img/asbg.png") repeat-x;
width: 20%;
margin-left: 10%;
margin-top: 40px;
}
、
https://jsfiddle.net/sj851u5z/
、それらが整列している...私はあなたの質問を理解していない...速かった – Akxe