#content_containerという名前のコンテナに2つのdivがあります。divは親コンテナに正しく配置されていません
私のdivは#lightbox_blockです。#lightbox_blockには、四角形の小さな四角い大きな四角形と#advertisement_barが含まれています。
#advertisement_barを#lightbox_blockの下に表示しますが、#content_containerの上部に固執しているようです。私はそれを離れて強制的に相対的な位置決めタグを追加しようとしましたが、それでもスティック、任意のヒントが高く評価されています!
#content_container {
width: 930.75px;
height: 620px;
margin-left: 10px;
margin-right: 0px;
margin-top: 0px;
background-color: white;
}
#lightbox_block {
width: 930.75px;
height: 324.00px;
margin-left: 0px;
margin-right: 0px;
margin-top: 6px;
position: absolute;
}
#advertisement_bar {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#0a0a0a+0,222222+80,232323+100 */
background: rgb(10, 10, 10);
/* Old browsers */
background: -moz-linear-gradient(top, rgba(10, 10, 10, 1) 0%, rgba(34, 34, 34, 1) 80%, rgba(35, 35, 35, 1) 100%);
/* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(10, 10, 10, 1) 0%, rgba(34, 34, 34, 1) 80%, rgba(35, 35, 35, 1) 100%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(34, 34, 34, 1) 80%, rgba(35, 35, 35, 1) 100%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#0a0a0a', endColorstr='#232323', GradientType=0);
/* IE6-9 */
position: absolute;
}
<div id="content_container">
<div id="lightbox_block">
</div>
<div id="advertisement_bar">
</div>
</div>
コードスニペットは何も表示されません –
私のメインコードはかなり大きいです、私はCSSとHTMLの位置を見ることができるように非常に短いバージョンを追加しました。 – Ninja2k
@ Ninja2kこれはあなたが意味することですか? https://jsfiddle.net/1tLb7z4b/2/ – maverick