You have to apply that rule (text-align: center) in the element that
contains the images. Where are you inserting it in the iframe? I suppose
that your are doing it in the body, so you have to apply the rule to that:
body {text-align: center}.margin:auto only works with block elements, so it doesn't center it. Rumoroso On Tue, Nov 10, 2009 at 10:52 PM, Michael Newberry <[email protected]>wrote: > I'm pasting images into an iframe using a simple click on a link. The image > always appears at the 0,0 scroll position inside the iframe. Is there a > simple css way to center it? I've tried using text-align:center. > > Thanks, > > Michael > ______________________________________________________________________ > 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/ > -- www.niquelao.net - Niquelando la web ______________________________________________________________________ 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/
