2012-03-24 8 views
-1

CSSのdivの幅が設定されていますが、その幅を超えてdivの内側に何か必要ですが、解決策が見つかりません。ここに私のCSSです:Divの幅を超えていますか?

#wrapper { 
    width: 845px; 
    margin: 0 auto; 
} 

#wrapper #content { 
    width: 630px; 
    float: left; 

} 

#wrapper #content .post { 

    background-image: url('images/black_linen_v2.png'); 
    padding: 10px; 
    color: white; text-shadow: black 0.1em 0.1em 0.2em; 
    position: relative; 
    -webkit-border-radius: 10px; 
    -moz-border-radius: 10px; 



} 

#wrapper #primary { 
    color: white; 
       } 

#wrapper #primary .widget-container { 
    color: white; text-shadow: black 0.1em 0.1em 0.2em; 
    padding: 10px; 

    background-image:url('images/black_linen_v2.png'); 
    position: relative; 
    -webkit-border-radius: 10px; 
    -moz-border-radius: 10px; 

} 

そして、ここでは、私がその領域を越えて行くために必要なものです:

/* This is the ribbon effect */ 
.ribbon { 
    background: #36ff36; 
    background: -moz-linear-gradient(top, #36ff36, #21b521); 
    background: -webkit-gradient(linear, left top, left bottom, from(#36ff36), to(#21b521)); 
    padding: 10px 10px; 
    margin-left: 50px; 
    margin-top: 0; 
    position: relative; 
    width: 100%; 

    -moz-box-shadow: 1px 1px 3px #292929; 
    -webkit-box-shadow: 1px 1px 3px #292929; 

     /*round the top corners */ 
    -webkit-border-top-left-radius: 10px ; 
    -webkit-border-top-right-radius: 10px; 
    -moz-border-top-left-radius: 10px ; 
    -moz-border-top-right-radius: 10px ; 
    border-top-right-radius: 10px ; 
    border-top-left-radius: 10px ; 


    color: #454545; 
    text-shadow: 1px 1px 0 #36ff36; 
    text-align:center; 
} 

.arrowl { 
    width: 0; height: 0; 
    line-height: 0; 
    border-left: 20px solid transparent; 
    border-top: 10px solid #21b521; 
    top: 104%; 
    left: 0; 
    position: absolute; 
} 
.arrowr { 

    width: 0; height: 0; 
    line-height: 0; 
    border-right: 20px solid transparent; 
    border-top: 10px solid #21b521; 
    top: 104%; 
    right: 0; 
    position: absolute; 
} 

#footer {position: relative; 
    background-image:url('../images/footer.png'); 
    margin-top: -150px; /* negative value of footer height */ 
    height: 150px; 
    clear:both;} 
/* End of ribbon effect*/ 

私はそのセットの幅を超えて行く必要がある「.ribbon」とセット幅の競合が、。

ご協力いただき誠にありがとうございます。

+0

HTMLを投稿することは非常に便利です。今は、あなたのマークアップを知らないのでほとんど助けが不可能です。ありがとう! – Nathan

答えて

0

overflow:visible#wrapperに設定し、.ribbonまたはパディングの場合は、より大きい幅(110%)を使用してください。

1

あなたのHTMLを投稿すると、推測ゲームになります。ただし、コンテナの外にあるアイテムを作成する場合は、コンテナのオーバーフロープロパティを設定する必要があります。

0

オブジェクトを固定位置として設定できます。次に、位置と寸法を定義します。親コンテナのプロパティがoverflow:visibleであることを確認してください。あなたの子供の要素は次のようになります

position: fixed; 
width:*; 
height:*; 
関連する問題