On Thu, Nov 6, 2014 at 5:29 PM, Angela French <[email protected]> wrote:
> Hello,
> Can anyone please tell me why the child (#band) is wider than the boundary of
> its parent (#outcontainer)? I set width:100% on the child to make sure it
> took up the entire width of the parent, but it went wider. Can't figure out
> what I'm missing here. It may be the concurrent use of display:table but I'm
> not sure why setting width still wouldn't work. If I set the width to 98% it
> almost fits inside the parent.
>
> http://www.sbctc.edu/OAAInstruction.html
Angela,
Try
#band {height: 52px;
background-color:#013E7D;padding-right:/*20px*/4%;text-align:right;vertical-align:middle;display:table;width:96%;/*100%*/}
Best,
David Laakso
--
Chelsea Creek Studio
http://ccstudi.com
desktop | laptop | tablet | mobile
______________________________________________________________________
css-discuss [[email protected]]
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/