On Thu, Jan 22, 2015 at 11:39 PM, worik <worik.stan...@gmail.com> wrote:

> Friends
>
> I have problems getting my sizing of divs correct.
>
>
> Given the HTML:
>
> <div class="A">A B C
>     <div class="B">E F G</div>
> </div>
>
> .A {
>     width=100%;
>     border:2px solid blue;
> }
> .B {
>     width=50%;
>     border:1px solid red;
> }
>
> I want to make the nested div half the width of the outer div.  But they
> both expand to the fill width.
>
> Clearly I am missing something elementary.  Some times I can make this
> work, some times I cannot, and I confess I have confused myself.
>
>
>
Syntax error in your CSS.

It's not "width=", it's "width:"

Ken
______________________________________________________________________
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