2010-08-24 4 views
1

J'ai un #wrapper, qui contient tout le contenu de la page, et je voudrais placer un autre div autour avec une bordure d'ombre, #shadowwrap. Je suis les yeux fixés sur ce genre de choses pour moyen de longue aujourd'hui, et mon cerveau est coincé ...ajouter une bordure d'ombre à mon wrapper

#shadowwrap { 
    background:url("images/shadowborder.png") repeat-y center; 
    background-color:transparent; 
    max-width:1000px; 
    min-width:1000px; 
    min-height:100%; 
    margin:0 auto; 
    position:relative; 
} 

#wrapper { 
    background-color:#FFF; 
    width:100%; 
    max-width:980px; 
    min-width:980px; 
    min-height:100%!important; 
    margin:0 auto; 
    margin-bottom:-50px; 
    position:relative; 
    overflow:auto; 
} 

site: http://www.hcfmissoula.com

Merci.

Répondre

0

Vous pouvez vous rendre la vie beaucoup plus facile par simple application de l'ombre à l'élément #wrapper comme ceci:

#wrapper { 
    /* shadowborder.png should be 1000px wide (10px of shadow on either side and 
     980px of white to create the solid background colour) */ 
    background: url("images/shadowborder.png") repeat-y 0 0;   

    /* The 10px of left and right padding + 980px of width will result in a 
     1000px wide #wrapper */ 
    padding: 0 10px; 
    width: 980px; 

    /* remaining CSS. I removed min-width and max-width because they were 
     both the same value and therefore didn't do much ;) */ 
    min-height: 100% !important; 
    margin: 0 auto; 
    margin-bottom: -50px; 
    position: relative; 
    overflow: auto; 
} 
+0

mes remerciements, @Pat. – blackessej

Questions connexes