Le 10 mars 2014 à 06:45, John <j...@coffeeonmars.com> a écrit :

> at this page the bar that says new clothes at doubletake is set to 
> max-width:980px and width: 100%, yet it exceeds the width of it's parent 
> which is 980
> 
> how can this be?

>From http://coffeeonmars.com/test/DTake_Index.html

.sliderWideHeadTop h4 {
        /* ………. rest ……..*/
        width:100%;
        max-width:980px;
        padding:0 0 0 1.632653061224%; /* <————- */
}


The box model John. Adding the padding makes the box wider. The thing is, you 
don't need to declare width/max-width on that box (the H4). It will 
automatically be as wide as the parent box, normal behaviour for a block-level 
element.




Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to