On May 22, 2012, at 7:34 PM, mem wrote: > My question is: > It seems to me that, using text-align:center; should serve the propose of > centering text and NOT img and other nested divs, am I wrong ?
Centering text and other inline(or inline-replaced) content : img, video, elements with display:inline-block or inline-table. > What would be the proper way, for doing this ? > > I've tried: > margin-left: auto; > margin-right: auto; > > Nothing happened. For block-level elements, you need to specify a width in addition to the code above. Philippe -- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ 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/
