On 05/02/2009, at 11:49 PM, Daniel Kessler wrote:
> In another test page, I had changed it out for p tags like you but  
> that hadn't helped it center.  The major difference seemed to be  
> width:100%.  For educational reasons, why did that work?

Without the width specified the p tag block will will only be as wide  
as it needs to be for it's content. There's not enough "content  
width" in the image and caption to push it out to the width of your  
containing div.

What can sometimes help to visualize what's going on is to set a  
different temporary background color to the ("mis-behaving") tag.  
Makes it easier to see where the problem(s) lie, and finding the real  
problem is often the biggest obstacle in working out the fix.

Cheers,
KathyW.
______________________________________________________________________
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