J.C. Berry wrote: > Hello all, > I have the below link to a problem. I have an absolute page and container > width, but I have a div inside the container that I need centered no matter > how wide that contained div is. How can I make the contained div only as > wide as its content and center it?
Make the contained <DIV> "display: inline-block" and the surrounding <DIV> "text-align: center" ? Not tested, but based on previous work that used these ideas. Philip Taylor ______________________________________________________________________ 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/