wsg  

Re: [WSG] why do some divs shrink wrap and others don't [OT?]

dwain
Thu, 27 Mar 2008 10:51:00 -0700

On 3/27/08, Matthew Pennell <[EMAIL PROTECTED]> wrote:
>
> On Thu, Mar 27, 2008 at 5:07 AM, dwain <[EMAIL PROTECTED]> wrote:
>
> > after my experience tonight i was wondering why some divs will shrink
> > wrap their contents while others don't.  any takers?
> >
>
> Block level elements such as DIV will be 100% of the width of their parent
> container, unless they are floated - in which case they can either have an
> explicit width set via CSS, or they will shrinkwrap their contents.
>

i had no width set on the nav ul or the nav div and they both went to 100%.
the div didn't shrink wrap the div and ul.
dwain
-- 
dwain alford
"The artist may use any form which his expression demands;
for his inner impulse must find suitable expression."  Kandinsky


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************