On Thursday, July 14, 2011, 11:20:18 PM, Ghodmode wrote:

> Since its (default) display is "block", it takes up the full width of
> the containing element.  "margin: 0 auto" would center it, if it was
> smaller than the <nav> that contains it.

> To make it the same size as its contents, either add up the widths of
> the elements it contains (560px) and set a fixed width, or set its
> display value to "inline-block".
---

A quick point here is that IE doesn't respect display:inline-block for
elements that are display:block by default. You may remember I had a
similar issue with divs last week and ended up having to use spans
instead.

HTH,

-- 
Geoff

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

Reply via email to